Lines Matching refs:kobj
23 static void nfs_kset_release(struct kobject *kobj) in nfs_kset_release() argument
25 struct kset *kset = container_of(kobj, struct kset, kobj); in nfs_kset_release()
30 const struct kobject *kobj) in nfs_netns_object_child_ns_type() argument
49 ret = kobject_set_name(&nfs_kset->kobj, "nfs"); in nfs_sysfs_init()
55 nfs_kset->kobj.parent = fs_kobj; in nfs_sysfs_init()
56 nfs_kset->kobj.ktype = &nfs_kset_type; in nfs_sysfs_init()
57 nfs_kset->kobj.kset = NULL; in nfs_sysfs_init()
73 static ssize_t nfs_netns_identifier_show(struct kobject *kobj, in nfs_netns_identifier_show() argument
76 struct nfs_netns_client *c = container_of(kobj, in nfs_netns_identifier_show()
95 static ssize_t nfs_netns_identifier_store(struct kobject *kobj, in nfs_netns_identifier_store() argument
99 struct nfs_netns_client *c = container_of(kobj, in nfs_netns_identifier_store()
120 static void nfs_netns_client_release(struct kobject *kobj) in nfs_netns_client_release() argument
122 struct nfs_netns_client *c = container_of(kobj, in nfs_netns_client_release()
129 static const void *nfs_netns_client_namespace(const struct kobject *kobj) in nfs_netns_client_namespace() argument
131 return container_of(kobj, struct nfs_netns_client, kobject)->net; in nfs_netns_client_namespace()
150 static void nfs_netns_object_release(struct kobject *kobj) in nfs_netns_object_release() argument
152 struct nfs_netns_client *c = container_of(kobj, in nfs_netns_object_release()
158 static const void *nfs_netns_namespace(const struct kobject *kobj) in nfs_netns_namespace() argument
160 return container_of(kobj, struct nfs_netns_client, nfs_net_kobj)->net; in nfs_netns_namespace()
199 clp = nfs_netns_client_alloc(&nfs_kset->kobj, net); in nfs_netns_sysfs_setup()
232 shutdown_show(struct kobject *kobj, struct kobj_attribute *attr, in shutdown_show() argument
235 struct nfs_server *server = container_of(kobj, struct nfs_server, kobj); in shutdown_show()
241 shutdown_store(struct kobject *kobj, struct kobj_attribute *attr, in shutdown_store() argument
247 server = container_of(kobj, struct nfs_server, kobj); in shutdown_store()
287 ret = sysfs_create_link_nowarn(&server->kobj, in nfs_sysfs_link_rpc_client()
295 static void nfs_sysfs_sb_release(struct kobject *kobj) in nfs_sysfs_sb_release() argument
300 static const void *nfs_netns_server_namespace(const struct kobject *kobj) in nfs_netns_server_namespace() argument
302 return container_of(kobj, struct nfs_server, kobj)->nfs_client->cl_net; in nfs_netns_server_namespace()
316 ret = kobject_init_and_add(&server->kobj, &nfs_sb_ktype, in nfs_sysfs_add_server()
317 &nfs_kset->kobj, "server-%d", server->s_sysfs_id); in nfs_sysfs_add_server()
323 ret = sysfs_create_file_ns(&server->kobj, &nfs_sysfs_attr_shutdown.attr, in nfs_sysfs_add_server()
324 nfs_netns_server_namespace(&server->kobj)); in nfs_sysfs_add_server()
336 ret = kobject_rename(&server->kobj, s->s_id); in nfs_sysfs_move_server_to_sb()
339 server->kobj.name, ret); in nfs_sysfs_move_server_to_sb()
349 ret = kobject_rename(&server->kobj, s); in nfs_sysfs_move_sb_to_server()
354 server->kobj.name, ret); in nfs_sysfs_move_sb_to_server()
360 kobject_del(&server->kobj); in nfs_sysfs_remove_server()