aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/kobject.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/kobject.h')
-rw-r--r--include/linux/kobject.h11
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
137extern const struct sysfs_ops kobj_sysfs_ops; 137extern 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 */
139enum kobj_ns_type { 143enum 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
144struct sock; 148struct 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 */
145struct kobj_ns_type_operations { 156struct 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);