Lines Matching refs:ops
86 const struct kobj_ns_type_operations *ops; in create_dir() local
117 ops = kobj_child_ns_ops(kobj); in create_dir()
118 if (ops) { in create_dir()
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()
1014 int kobj_ns_type_register(const struct kobj_ns_type_operations *ops) in kobj_ns_type_register() argument
1016 enum kobj_ns_type type = ops->type; in kobj_ns_type_register()
1034 kobj_ns_ops_tbl[type] = ops; in kobj_ns_type_register()
1055 const struct kobj_ns_type_operations *ops = NULL; in kobj_child_ns_ops() local
1058 ops = parent->ktype->child_ns_type(parent); in kobj_child_ns_ops()
1060 return ops; in kobj_child_ns_ops()