31#define UEVENT_HELPER_PATH_LEN 256
32#define UEVENT_NUM_ENVP 64
33#define UEVENT_BUFFER_SIZE 2048
35#ifdef CONFIG_UEVENT_HELPER
37extern char uevent_helper[];
70 struct kernfs_node *
sd;
79#ifdef CONFIG_DEBUG_KOBJECT_RELEASE
87#define kobject_name(kobj) (((const struct kobject *)(const void *)(kobj))->name)
92 const
char *
fmt, ...);
96 const
char *
fmt, ...);
118 const struct ns_common *(*namespace)(
const struct kobject *kobj);
141 const char *buf,
size_t count);
183static inline struct kset *kset_get(
struct kset *k)
188static inline void kset_put(
struct kset *k)
242#define kobject_uevent(kobj, action) ((void)0)
243#define kobject_uevent_env(kobj, action, envp) (0)
int64_t ssize_t
Definition stddef.h:38
char * va_list
Definition acmsvcex.h:186
#define NULL
Definition actypes.h:561
flag
Definition bytecode.h:29
#define __printf(fmt_idx, arg_idx)
Definition compiler.h:144
#define __must_check
Definition compiler.h:114
#define container_of(ptr, type, member)
Definition container_of.h:19
int __must_check kobject_move(struct kobject *, struct kobject *)
struct kobject *__must_check kobject_get_unless_zero(struct kobject *kobj)
struct kset __randomize_layout
struct kobject * kernel_kobj
#define UEVENT_BUFFER_SIZE
Definition kobject.h:33
struct kobject const char const struct kobj_type * ktype
Definition kobject.h:94
void kobject_put(struct kobject *kobj)
struct kset *__must_check kset_create_and_add(const char *name, const struct kset_uevent_ops *u, struct kobject *parent_kobj)
void kset_unregister(struct kset *kset)
struct kobject * firmware_kobj
const struct ns_common * kobject_namespace(const struct kobject *kobj)
const struct sysfs_ops kobj_sysfs_ops
kobject_action
Definition kobject.h:53
@ KOBJ_ADD
Definition kobject.h:54
@ KOBJ_BIND
Definition kobject.h:60
@ KOBJ_ONLINE
Definition kobject.h:58
@ KOBJ_OFFLINE
Definition kobject.h:59
@ KOBJ_REMOVE
Definition kobject.h:55
@ KOBJ_MOVE
Definition kobject.h:57
@ KOBJ_UNBIND
Definition kobject.h:61
@ KOBJ_CHANGE
Definition kobject.h:56
const char * format
Definition kobject.h:247
char * kobject_get_path(const void *kobj, gfp_t flag)
const char const char * fmt
Definition kobject.h:85
struct kobject * kobject_get(struct kobject *kobj)
int kobject_synth_uevent(struct kobject *kobj, const char *buf, size_t count)
int __must_check kset_register(struct kset *kset)
struct kobject * parent
Definition kobject.h:91
const char * name
Definition kobject.h:84
void kobject_get_ownership(const struct kobject *kobj, kuid_t *uid, kgid_t *gid)
int __must_check kobject_rename(struct kobject *, const char *new_name)
struct kobject const char const struct kobj_type struct kobject const char void kobject_del(struct kobject *kobj)
struct kobject * power_kobj
struct kobject * hypervisor_kobj
void kset_init(struct kset *kset)
struct kobject *__must_check kobject_create_and_add(const char *name, struct kobject *parent)
struct kobject * kset_find_obj(struct kset *, const char *)
const char const char va_list vargs
Definition kobject.h:85
#define UEVENT_NUM_ENVP
Definition kobject.h:32
void kobject_init(struct kobject *kobj, const struct kobj_type *ktype)
unsigned int gfp_t
Definition kernel.h:56
int spinlock_t
Definition kernel.h:44
Definition workqueue.h:229
Definition uidgid_types.h:11
struct attribute attr
Definition kobject.h:137
ssize_t(* show)(struct kobject *kobj, struct kobj_attribute *attr, char *buf)
Definition kobject.h:138
ssize_t(* store)(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t count)
Definition kobject.h:140
Definition kobject_ns.h:40
const struct sysfs_ops * sysfs_ops
Definition kobject.h:115
char * argv[3]
Definition kobject.h:123
int envp_idx
Definition kobject.h:125
char * envp[UEVENT_NUM_ENVP]
Definition kobject.h:124
int buflen
Definition kobject.h:127
char buf[UEVENT_BUFFER_SIZE]
Definition kobject.h:126
struct kernfs_node * sd
Definition kobject.h:70
unsigned int state_initialized
Definition kobject.h:73
struct kset * kset
Definition kobject.h:68
struct list_head entry
Definition kobject.h:66
unsigned int state_remove_uevent_sent
Definition kobject.h:76
const char * name
Definition kobject.h:65
unsigned int uevent_suppress
Definition kobject.h:77
const struct kobj_type * ktype
Definition kobject.h:69
struct kobject * parent
Definition kobject.h:67
unsigned int state_add_uevent_sent
Definition kobject.h:75
unsigned int state_in_sysfs
Definition kobject.h:74
int(*const filter)(const struct kobject *kobj)
Definition kobject.h:131
int(*const uevent)(const struct kobject *kobj, struct kobj_uevent_env *env)
Definition kobject.h:133
const char *(*const name)(const struct kobject *kobj)
Definition kobject.h:132
struct kobject kobj
Definition kobject.h:168
const struct kset_uevent_ops * uevent_ops
Definition kobject.h:169
spinlock_t list_lock
Definition kobject.h:167
struct list_head list
Definition kobject.h:166
Definition uidgid_types.h:7