• Home
  • Raw
  • Download

Lines Matching refs:type

32 	if (!ns_ops || ns_ops->type == KOBJ_NS_TYPE_NONE)  in kobject_namespace()
119 BUG_ON(ops->type <= KOBJ_NS_TYPE_NONE); in create_dir()
120 BUG_ON(ops->type >= KOBJ_NS_TYPES); in create_dir()
121 BUG_ON(!kobj_ns_type_registered(ops->type)); in create_dir()
1043 enum kobj_ns_type type = ops->type; in kobj_ns_type_register() local
1049 if (type >= KOBJ_NS_TYPES) in kobj_ns_type_register()
1053 if (type <= KOBJ_NS_TYPE_NONE) in kobj_ns_type_register()
1057 if (kobj_ns_ops_tbl[type]) in kobj_ns_type_register()
1061 kobj_ns_ops_tbl[type] = ops; in kobj_ns_type_register()
1068 int kobj_ns_type_registered(enum kobj_ns_type type) in kobj_ns_type_registered() argument
1073 if ((type > KOBJ_NS_TYPE_NONE) && (type < KOBJ_NS_TYPES)) in kobj_ns_type_registered()
1074 registered = kobj_ns_ops_tbl[type] != NULL; in kobj_ns_type_registered()
1095 bool kobj_ns_current_may_mount(enum kobj_ns_type type) in kobj_ns_current_may_mount() argument
1100 if ((type > KOBJ_NS_TYPE_NONE) && (type < KOBJ_NS_TYPES) && in kobj_ns_current_may_mount()
1101 kobj_ns_ops_tbl[type]) in kobj_ns_current_may_mount()
1102 may_mount = kobj_ns_ops_tbl[type]->current_may_mount(); in kobj_ns_current_may_mount()
1108 void *kobj_ns_grab_current(enum kobj_ns_type type) in kobj_ns_grab_current() argument
1113 if ((type > KOBJ_NS_TYPE_NONE) && (type < KOBJ_NS_TYPES) && in kobj_ns_grab_current()
1114 kobj_ns_ops_tbl[type]) in kobj_ns_grab_current()
1115 ns = kobj_ns_ops_tbl[type]->grab_current_ns(); in kobj_ns_grab_current()
1122 const void *kobj_ns_netlink(enum kobj_ns_type type, struct sock *sk) in kobj_ns_netlink() argument
1127 if ((type > KOBJ_NS_TYPE_NONE) && (type < KOBJ_NS_TYPES) && in kobj_ns_netlink()
1128 kobj_ns_ops_tbl[type]) in kobj_ns_netlink()
1129 ns = kobj_ns_ops_tbl[type]->netlink_ns(sk); in kobj_ns_netlink()
1135 const void *kobj_ns_initial(enum kobj_ns_type type) in kobj_ns_initial() argument
1140 if ((type > KOBJ_NS_TYPE_NONE) && (type < KOBJ_NS_TYPES) && in kobj_ns_initial()
1141 kobj_ns_ops_tbl[type]) in kobj_ns_initial()
1142 ns = kobj_ns_ops_tbl[type]->initial_ns(); in kobj_ns_initial()
1148 void kobj_ns_drop(enum kobj_ns_type type, void *ns) in kobj_ns_drop() argument
1151 if ((type > KOBJ_NS_TYPE_NONE) && (type < KOBJ_NS_TYPES) && in kobj_ns_drop()
1152 kobj_ns_ops_tbl[type] && kobj_ns_ops_tbl[type]->drop_ns) in kobj_ns_drop()
1153 kobj_ns_ops_tbl[type]->drop_ns(ns); in kobj_ns_drop()