Changeset View
Standalone View
sys/compat/linuxkpi/common/include/linux/kobject.h
Show All 35 Lines | |||||
#include <linux/kernel.h> | #include <linux/kernel.h> | ||||
#include <linux/kref.h> | #include <linux/kref.h> | ||||
#include <linux/list.h> | #include <linux/list.h> | ||||
#include <linux/slab.h> | #include <linux/slab.h> | ||||
struct kobject; | struct kobject; | ||||
struct sysctl_oid; | struct sysctl_oid; | ||||
#define KOBJ_CHANGE 0x01 /* XXX are there others? */ | |||||
kib: Is this comment useful ? | |||||
struct kobj_type { | struct kobj_type { | ||||
void (*release)(struct kobject *kobj); | void (*release)(struct kobject *kobj); | ||||
const struct sysfs_ops *sysfs_ops; | const struct sysfs_ops *sysfs_ops; | ||||
struct attribute **default_attrs; | struct attribute **default_attrs; | ||||
}; | }; | ||||
extern const struct kobj_type linux_kfree_type; | extern const struct kobj_type linux_kfree_type; | ||||
▲ Show 20 Lines • Show All 93 Lines • ▼ Show 20 Lines | |||||
{ | { | ||||
return kobj->name; | return kobj->name; | ||||
} | } | ||||
int kobject_set_name(struct kobject *kobj, const char *fmt, ...); | int kobject_set_name(struct kobject *kobj, const char *fmt, ...); | ||||
int kobject_init_and_add(struct kobject *kobj, const struct kobj_type *ktype, | int kobject_init_and_add(struct kobject *kobj, const struct kobj_type *ktype, | ||||
struct kobject *parent, const char *fmt, ...); | struct kobject *parent, const char *fmt, ...); | ||||
static __inline void | |||||
kobject_uevent_env(struct kobject *kobj, int action, char *envp[]) | |||||
{ | |||||
/* XXX TODO */ | |||||
return; | |||||
kibUnsubmitted Done Inline ActionsAgain return. Would be nice to give a hint about intended functionality. kib: Again return. Would be nice to give a hint about intended functionality. | |||||
bzAuthorUnsubmitted Done Inline Actions
Removed the "return". bz: > Again return. Would be nice to give a hint about intended functionality.
Removed the… | |||||
kibUnsubmitted Done Inline ActionsThe first half of the last paragraph makes quite good note to put there, IMO. kib: The first half of the last paragraph makes quite good note to put there, IMO. | |||||
} | |||||
#endif /* _LINUX_KOBJECT_H_ */ | #endif /* _LINUX_KOBJECT_H_ */ | ||||
Not Done Inline Actions@bz in drm we do devctl_notify instead of kobject_uevent_env: https://github.com/FreeBSDDesktop/kms-drm/pull/215/files If kobject_uevent_env just worked to produce the same kind of devctl notification it would be very nice. val_packett.cool: @bz in drm we do `devctl_notify` instead of `kobject_uevent_env`: https://github. | |||||
Done Inline ActionsOh cool. bz: Oh cool.
I'll go and have a look and then we could possibly even unifdef that part in… |
Is this comment useful ?