Lines Matching refs:kobj
23 static void nfs_netns_object_release(struct kobject *kobj) in nfs_netns_object_release() argument
25 kfree(kobj); in nfs_netns_object_release()
29 struct kobject *kobj) in nfs_netns_object_child_ns_type() argument
43 struct kobject *kobj; in nfs_netns_object_alloc() local
45 kobj = kzalloc(sizeof(*kobj), GFP_KERNEL); in nfs_netns_object_alloc()
46 if (kobj) { in nfs_netns_object_alloc()
47 kobj->kset = kset; in nfs_netns_object_alloc()
48 if (kobject_init_and_add(kobj, &nfs_netns_object_type, in nfs_netns_object_alloc()
50 return kobj; in nfs_netns_object_alloc()
51 kobject_put(kobj); in nfs_netns_object_alloc()
76 static ssize_t nfs_netns_identifier_show(struct kobject *kobj, in nfs_netns_identifier_show() argument
79 struct nfs_netns_client *c = container_of(kobj, in nfs_netns_identifier_show()
98 static ssize_t nfs_netns_identifier_store(struct kobject *kobj, in nfs_netns_identifier_store() argument
102 struct nfs_netns_client *c = container_of(kobj, in nfs_netns_identifier_store()
123 static void nfs_netns_client_release(struct kobject *kobj) in nfs_netns_client_release() argument
125 struct nfs_netns_client *c = container_of(kobj, in nfs_netns_client_release()
133 static const void *nfs_netns_client_namespace(struct kobject *kobj) in nfs_netns_client_namespace() argument
135 return container_of(kobj, struct nfs_netns_client, kobject)->net; in nfs_netns_client_namespace()