• 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()
1016 enum kobj_ns_type type = ops->type; in kobj_ns_type_register() local
1022 if (type >= KOBJ_NS_TYPES) in kobj_ns_type_register()
1026 if (type <= KOBJ_NS_TYPE_NONE) in kobj_ns_type_register()
1030 if (kobj_ns_ops_tbl[type]) in kobj_ns_type_register()
1034 kobj_ns_ops_tbl[type] = ops; in kobj_ns_type_register()
1041 int kobj_ns_type_registered(enum kobj_ns_type type) in kobj_ns_type_registered() argument
1046 if ((type > KOBJ_NS_TYPE_NONE) && (type < KOBJ_NS_TYPES)) in kobj_ns_type_registered()
1047 registered = kobj_ns_ops_tbl[type] != NULL; in kobj_ns_type_registered()
1068 bool kobj_ns_current_may_mount(enum kobj_ns_type type) in kobj_ns_current_may_mount() argument
1073 if ((type > KOBJ_NS_TYPE_NONE) && (type < KOBJ_NS_TYPES) && in kobj_ns_current_may_mount()
1074 kobj_ns_ops_tbl[type]) in kobj_ns_current_may_mount()
1075 may_mount = kobj_ns_ops_tbl[type]->current_may_mount(); in kobj_ns_current_may_mount()
1081 void *kobj_ns_grab_current(enum kobj_ns_type type) in kobj_ns_grab_current() argument
1086 if ((type > KOBJ_NS_TYPE_NONE) && (type < KOBJ_NS_TYPES) && in kobj_ns_grab_current()
1087 kobj_ns_ops_tbl[type]) in kobj_ns_grab_current()
1088 ns = kobj_ns_ops_tbl[type]->grab_current_ns(); in kobj_ns_grab_current()
1095 const void *kobj_ns_netlink(enum kobj_ns_type type, struct sock *sk) in kobj_ns_netlink() argument
1100 if ((type > KOBJ_NS_TYPE_NONE) && (type < KOBJ_NS_TYPES) && in kobj_ns_netlink()
1101 kobj_ns_ops_tbl[type]) in kobj_ns_netlink()
1102 ns = kobj_ns_ops_tbl[type]->netlink_ns(sk); in kobj_ns_netlink()
1108 const void *kobj_ns_initial(enum kobj_ns_type type) in kobj_ns_initial() argument
1113 if ((type > KOBJ_NS_TYPE_NONE) && (type < KOBJ_NS_TYPES) && in kobj_ns_initial()
1114 kobj_ns_ops_tbl[type]) in kobj_ns_initial()
1115 ns = kobj_ns_ops_tbl[type]->initial_ns(); in kobj_ns_initial()
1121 void kobj_ns_drop(enum kobj_ns_type type, void *ns) in kobj_ns_drop() argument
1124 if ((type > KOBJ_NS_TYPE_NONE) && (type < KOBJ_NS_TYPES) && in kobj_ns_drop()
1125 kobj_ns_ops_tbl[type] && kobj_ns_ops_tbl[type]->drop_ns) in kobj_ns_drop()
1126 kobj_ns_ops_tbl[type]->drop_ns(ns); in kobj_ns_drop()