diff options
Diffstat (limited to 'include/linux/kobject.h')
-rw-r--r-- | include/linux/kobject.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/linux/kobject.h b/include/linux/kobject.h index d9456f69904f..b60d2dfe4e69 100644 --- a/include/linux/kobject.h +++ b/include/linux/kobject.h | |||
@@ -136,12 +136,23 @@ struct kobj_attribute { | |||
136 | 136 | ||
137 | extern const struct sysfs_ops kobj_sysfs_ops; | 137 | extern const struct sysfs_ops kobj_sysfs_ops; |
138 | 138 | ||
139 | /* | ||
140 | * Namespace types which are used to tag kobjects and sysfs entries. | ||
141 | * Network namespace will likely be the first. | ||
142 | */ | ||
139 | enum kobj_ns_type { | 143 | enum kobj_ns_type { |
140 | KOBJ_NS_TYPE_NONE = 0, | 144 | KOBJ_NS_TYPE_NONE = 0, |
141 | KOBJ_NS_TYPES | 145 | KOBJ_NS_TYPES |
142 | }; | 146 | }; |
143 | 147 | ||
144 | struct sock; | 148 | struct sock; |
149 | |||
150 | /* | ||
151 | * Callbacks so sysfs can determine namespaces | ||
152 | * @current_ns: return calling task's namespace | ||
153 | * @netlink_ns: return namespace to which a sock belongs (right?) | ||
154 | * @initial_ns: return the initial namespace (i.e. init_net_ns) | ||
155 | */ | ||
145 | struct kobj_ns_type_operations { | 156 | struct kobj_ns_type_operations { |
146 | enum kobj_ns_type type; | 157 | enum kobj_ns_type type; |
147 | const void *(*current_ns)(void); | 158 | const void *(*current_ns)(void); |