Searched refs:kobj (Results 1 - 25 of 145) sorted by relevance

123456

/freebsd-13-stable/sys/compat/linuxkpi/common/include/linux/
H A Dkobject.h47 void (*release)(struct kobject *kobj);
73 ssize_t (*show)(struct kobject *kobj, struct kobj_attribute *attr,
75 ssize_t (*store)(struct kobject *kobj, struct kobj_attribute *attr,
80 kobject_init(struct kobject *kobj, const struct kobj_type *ktype) argument
83 kref_init(&kobj->kref);
84 INIT_LIST_HEAD(&kobj->entry);
85 kobj->ktype = ktype;
86 kobj->oidp = NULL;
92 kobject_put(struct kobject *kobj) argument
95 if (kobj)
100 kobject_get(struct kobject *kobj) argument
115 struct kobject *kobj; local
128 struct kobject *kobj; local
146 kobject_name(const struct kobject *kobj) argument
157 kobject_uevent_env(struct kobject *kobj, int action, char *envp[]) argument
[all...]
H A Dsysfs.h82 struct kobject *kobj; local
89 kobj = arg1;
91 if (kobj->ktype == NULL || kobj->ktype->sysfs_ops == NULL)
96 ops = kobj->ktype->sysfs_ops;
98 len = ops->show(kobj, attr, buf);
123 len = ops->store(kobj, attr, buf, len);
133 sysfs_create_file(struct kobject *kobj, const struct attribute *attr) argument
137 oid = SYSCTL_ADD_OID(NULL, SYSCTL_CHILDREN(kobj->oidp), OID_AUTO,
138 attr->name, CTLTYPE_STRING|CTLFLAG_RW|CTLFLAG_MPSAFE, kobj,
148 sysfs_remove_file(struct kobject *kobj, const struct attribute *attr) argument
156 sysfs_create_files(struct kobject *kobj, const struct attribute * const *attrs) argument
170 sysfs_remove_files(struct kobject *kobj, const struct attribute * const *attrs) argument
179 sysfs_create_group(struct kobject *kobj, const struct attribute_group *grp) argument
200 sysfs_remove_group(struct kobject *kobj, const struct attribute_group *grp) argument
208 sysfs_create_groups(struct kobject *kobj, const struct attribute_group **grps) argument
224 sysfs_remove_groups(struct kobject *kobj, const struct attribute_group **grps) argument
235 sysfs_merge_group(struct kobject *kobj, const struct attribute_group *grp) argument
243 sysfs_unmerge_group(struct kobject *kobj, const struct attribute_group *grp) argument
258 sysfs_create_dir(struct kobject *kobj) argument
273 sysfs_remove_dir(struct kobject *kobj) argument
[all...]
H A Dcdev.h51 struct kobject kobj; member in struct:linux_cdev
64 kobject_init(&cdev->kobj, &linux_cdev_static_ktype);
75 kobject_init(&cdev->kobj, &linux_cdev_ktype);
83 kobject_put(&p->kobj);
106 kobject_name(&cdev->kobj));
110 kobject_get(cdev->kobj.parent);
131 kobject_name(&cdev->kobj), MINOR(dev));
135 kobject_get(cdev->kobj.parent);
142 kobject_put(&cdev->kobj);
H A Ddevice.h56 struct kobject kobj; member in class:__anon8801
110 struct kobject kobj; member in struct:device
230 kobject_get(&dev->kobj);
239 return kobject_name(&dev->kobj);
243 kobject_set_name(&(_dev)->kobj, (_fmt), ##__VA_ARGS__)
250 kobject_put(&dev->kobj);
258 kobject_init(&class->kobj, &linux_class_ktype);
259 kobject_set_name(&class->kobj, class->name);
260 kobject_add(&class->kobj, &linux_class_root, class->name);
269 kobject_put(&class->kobj);
272 kobj_to_dev(struct kobject *kobj) argument
[all...]
H A Dmiscdevice.h61 kobject_set_name(&misc->cdev->kobj, misc->name);
/freebsd-13-stable/sys/mips/broadcom/
H A Dbhnd_nexusvar.h36 #include <sys/kobj.h>
/freebsd-13-stable/sys/dev/bhnd/
H A Dbhnd_erom_types.h38 #include <sys/kobj.h>
/freebsd-13-stable/sys/dev/ofw/
H A Dofwvar.h58 #include <sys/kobj.h>
/freebsd-13-stable/sys/powerpc/include/
H A Dplatformvar.h57 #include <sys/kobj.h>
/freebsd-13-stable/sys/kgssapi/
H A Dgss_release_buffer.c35 #include <sys/kobj.h>
H A Dgss_create_empty_oid_set.c35 #include <sys/kobj.h>
H A Dgss_release_oid_set.c35 #include <sys/kobj.h>
H A Dgss_test_oid_set_member.c35 #include <sys/kobj.h>
H A Dgss_wrap_size_limit.c35 #include <sys/kobj.h>
H A Dgss_release_cred.c35 #include <sys/kobj.h>
H A Dgss_add_oid_set_member.c35 #include <sys/kobj.h>
/freebsd-13-stable/sys/rpc/rpcsec_gss/
H A Drpcsec_gss_misc.c33 #include <sys/kobj.h>
/freebsd-13-stable/sys/ofed/drivers/infiniband/core/
H A Dib_sysfs.c55 struct kobject kobj; member in struct:gid_attr_group
60 struct kobject kobj; member in struct:ib_port
93 ssize_t (*show)(struct kobject *kobj,
95 ssize_t (*store)(struct kobject *kobj,
103 static ssize_t port_attr_show(struct kobject *kobj, argument
108 struct ib_port *p = container_of(kobj, struct ib_port, kobj);
120 static ssize_t gid_attr_show(struct kobject *kobj, argument
125 struct ib_port *p = container_of(kobj, struct gid_attr_group,
126 kobj)
640 ib_port_release(struct kobject *kobj) argument
663 ib_port_gid_attr_release(struct kobject *kobj) argument
786 show_hw_stats(struct kobject *kobj, struct attribute *attr, char *buf) argument
811 show_stats_lifespan(struct kobject *kobj, struct attribute *attr, char *buf) argument
830 set_stats_lifespan(struct kobject *kobj, struct attribute *attr, const char *buf, size_t count) argument
857 free_hsag(struct kobject *kobj, struct attribute_group *attr_group) argument
952 struct kobject *kobj = &port->kobj; local
959 struct kobject *kobj = &device->dev.kobj; local
[all...]
/freebsd-13-stable/sys/compat/linuxkpi/common/src/
H A Dlinux_compat.c136 kobject_set_name_vargs(struct kobject *kobj, const char *fmt, va_list args) argument
144 old = kobj->name;
166 kobj->name = name;
179 kobject_set_name(struct kobject *kobj, const char *fmt, ...) argument
185 error = kobject_set_name_vargs(kobj, fmt, args);
192 kobject_add_complete(struct kobject *kobj, struct kobject *parent) argument
197 kobj->parent = parent;
198 error = sysfs_create_dir(kobj);
199 if (error == 0 && kobj->ktype && kobj
215 kobject_add(struct kobject *kobj, struct kobject *parent, const char *fmt, ...) argument
232 struct kobject *kobj; local
244 linux_kobject_kfree(struct kobject *kobj) argument
250 linux_kobject_kfree_name(struct kobject *kobj) argument
269 linux_class_show(struct kobject *kobj, struct attribute *attr, char *buf) argument
283 linux_class_store(struct kobject *kobj, struct attribute *attr, const char *buf, size_t count) argument
298 linux_class_release(struct kobject *kobj) argument
318 linux_dev_release(struct kobject *kobj) argument
331 linux_dev_show(struct kobject *kobj, struct attribute *attr, char *buf) argument
345 linux_dev_store(struct kobject *kobj, struct attribute *attr, const char *buf, size_t count) argument
391 kobject_init_and_add(struct kobject *kobj, const struct kobj_type *ktype, struct kobject *parent, const char *fmt, ...) argument
2213 linux_cdev_release(struct kobject *kobj) argument
2226 linux_cdev_static_release(struct kobject *kobj) argument
[all...]
/freebsd-13-stable/sys/dev/extres/syscon/
H A Dsyscon.h35 #include <sys/kobj.h>
/freebsd-13-stable/sys/cddl/contrib/opensolaris/uts/common/ctf/
H A Dctf_subr.c30 #include <sys/kobj.h>
/freebsd-13-stable/sys/dev/mlx4/mlx4_ib/
H A Dmlx4_ib_sysfs.c159 sysfs_remove_file((_dentry)->kobj, &(_dentry)->dentry.attr); \
181 vdentry->kobj = _kobj;
190 ret = sysfs_create_file(vdentry->kobj, &vdentry->dentry.attr);
368 struct kobject kobj; member in struct:mlx4_port
379 static void mlx4_port_release(struct kobject *kobj) argument
381 struct mlx4_port *p = container_of(kobj, struct mlx4_port, kobj);
401 static ssize_t port_attr_show(struct kobject *kobj, argument
406 struct mlx4_port *p = container_of(kobj, struct mlx4_port, kobj);
413 port_attr_store(struct kobject *kobj, struct attribute *attr, const char *buf, size_t size) argument
[all...]
/freebsd-13-stable/sys/contrib/openzfs/module/os/linux/zfs/
H A Dzfs_sysfs.c118 zfs_kobj_release(struct kobject *kobj) argument
120 zfs_mod_kobj_t *zkobj = container_of(kobj, zfs_mod_kobj_t, zko_kobj);
323 dataset_property_show(struct kobject *kobj, struct attribute *attr, char *buf) argument
325 zfs_prop_t prop = zfs_name_to_prop(kobject_name(kobj));
337 pool_property_show(struct kobject *kobj, struct attribute *attr, char *buf) argument
339 zpool_prop_t prop = zpool_name_to_prop(kobject_name(kobj));
369 kernel_feature_show(struct kobject *kobj, struct attribute *attr, char *buf) argument
443 pool_feature_show(struct kobject *kobj, struct attribute *attr, char *buf) argument
447 if (zfeature_lookup_guid(kobject_name(kobj), &fid) != 0)
617 parent = &(((struct module *)(THIS_MODULE))->mkobj).kobj;
[all...]
/freebsd-13-stable/lib/librpcsec_gss/
H A Drpcsec_gss_conf.c56 char *kobj; member in struct:mech_info
184 char *name, *oid, *lib, *kobj; local
207 kobj = strsep(&p, "\t\n ");
208 if (!name || !oid || !lib || !kobj)
221 info->kobj = strdup(kobj);
/freebsd-13-stable/sys/dev/extres/phy/
H A Dphy.h32 #include <sys/kobj.h>

Completed in 268 milliseconds

123456