]> Git Repo - linux.git/commit
driver core: make kobj_type constant.
authorWedson Almeida Filho <[email protected]>
Fri, 24 Dec 2021 23:13:45 +0000 (23:13 +0000)
committerGreg Kroah-Hartman <[email protected]>
Mon, 27 Dec 2021 09:40:00 +0000 (10:40 +0100)
commitee6d3dd4ed48ab24b74bab3c3977b8218518247d
treef5d2c211fb55a757d64e74b2b8fcb6e7211ae19e
parent67e532a42cf4c6c214ed39e33e617bca29508f4e
driver core: make kobj_type constant.

This way instances of kobj_type (which contain function pointers) can be
stored in .rodata, which means that they cannot be [easily/accidentally]
modified at runtime.

Signed-off-by: Wedson Almeida Filho <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Documentation/core-api/kobject.rst
drivers/base/bus.c
drivers/base/core.c
include/linux/kobject.h
kernel/params.c
lib/kobject.c
This page took 0.064577 seconds and 4 git commands to generate.