/freebsd-10.2-release/sys/ofed/include/linux/ |
H A D | kobject.h | 42 void (*release)(struct kobject *kobj); 61 kobject_init(struct kobject *kobj, struct kobj_type *ktype) argument 64 kref_init(&kobj->kref); 65 INIT_LIST_HEAD(&kobj->entry); 66 kobj->ktype = ktype; 67 kobj->oidp = NULL; 70 static inline void kobject_put(struct kobject *kobj); 74 kobject_put(struct kobject *kobj) argument 77 if (kobj) 78 kref_put(&kobj 82 kobject_get(struct kobject *kobj) argument 91 kobject_set_name_vargs(struct kobject *kobj, const char *fmt, va_list args) argument 119 struct kobject *kobj; local 132 struct kobject *kobj; local 146 kobject_name(const struct kobject *kobj) argument [all...] |
H A D | sysfs.h | 76 struct kobject *kobj; local 83 kobj = arg1; 85 if (kobj->ktype == NULL || kobj->ktype->sysfs_ops == NULL) 90 ops = kobj->ktype->sysfs_ops; 92 len = ops->show(kobj, attr, buf); 117 len = ops->store(kobj, attr, buf, len); 127 sysfs_create_file(struct kobject *kobj, const struct attribute *attr) argument 130 sysctl_add_oid(NULL, SYSCTL_CHILDREN(kobj->oidp), OID_AUTO, 131 attr->name, CTLTYPE_STRING|CTLFLAG_RW|CTLFLAG_MPSAFE, kobj, 138 sysfs_remove_file(struct kobject *kobj, const struct attribute *attr) argument 146 sysfs_remove_group(struct kobject *kobj, const struct attribute_group *grp) argument 154 sysfs_create_group(struct kobject *kobj, const struct attribute_group *grp) argument 171 sysfs_create_dir(struct kobject *kobj) argument 181 sysfs_remove_dir(struct kobject *kobj) argument [all...] |
H A D | cdev.h | 44 struct kobject kobj; member in struct:linux_cdev 52 cdev_release(struct kobject *kobj) argument 56 cdev = container_of(kobj, struct linux_cdev, kobj); 63 cdev_static_release(struct kobject *kobj) argument 67 cdev = container_of(kobj, struct linux_cdev, kobj); 84 kobject_init(&cdev->kobj, &cdev_static_ktype); 95 kobject_init(&cdev->kobj, &cdev_ktype); 102 kobject_put(&p->kobj); [all...] |
H A D | device.h | 51 struct kobject kobj; member in class:__anon11397 65 struct kobject kobj; member in struct:device 147 kobject_get(&dev->kobj); 156 return kobject_name(&dev->kobj); 160 kobject_set_name(&(_dev)->kobj, (_fmt), ##__VA_ARGS__) 167 kobject_put(&dev->kobj); 171 class_show(struct kobject *kobj, struct attribute *attr, char *buf) argument 179 error = dattr->show(container_of(kobj, struct class, kobj), 185 class_store(struct kobject *kobj, struc argument 200 class_release(struct kobject *kobj) argument 238 device_release(struct kobject *kobj) argument 251 dev_show(struct kobject *kobj, struct attribute *attr, char *buf) argument 265 dev_store(struct kobject *kobj, struct attribute *attr, const char *buf, size_t count) argument [all...] |
H A D | linux_compat.c | 94 kobject_set_name(struct kobject *kobj, const char *fmt, ...) argument 100 error = kobject_set_name_vargs(kobj, fmt, args); 107 kobject_add_complete(struct kobject *kobj, struct kobject *parent) argument 112 kobj->parent = kobject_get(parent); 113 error = sysfs_create_dir(kobj); 114 if (error == 0 && kobj->ktype && kobj->ktype->default_attrs) { 116 t = kobj->ktype; 119 error = sysfs_create_file(kobj, *attr); 124 sysfs_remove_dir(kobj); 131 kobject_add(struct kobject *kobj, struct kobject *parent, const char *fmt, ...) argument 148 struct kobject *kobj; local 163 kobject_kfree(struct kobject *kobj) argument 169 kobject_kfree_name(struct kobject *kobj) argument 207 kobject_init_and_add(struct kobject *kobj, struct kobj_type *ktype, struct kobject *parent, const char *fmt, ...) argument [all...] |
H A D | miscdevice.h | 60 kobject_set_name(&misc->cdev->kobj, misc->name);
|
/freebsd-10.2-release/sys/dev/ofw/ |
H A D | ofwvar.h | 56 #include <sys/kobj.h>
|
/freebsd-10.2-release/sys/powerpc/include/ |
H A D | platformvar.h | 55 #include <sys/kobj.h>
|
H A D | mmuvar.h | 51 * kobj inheritance e.g. 56 #include <sys/kobj.h>
|
/freebsd-10.2-release/sys/kgssapi/ |
H A D | gss_release_buffer.c | 33 #include <sys/kobj.h>
|
H A D | gss_create_empty_oid_set.c | 33 #include <sys/kobj.h>
|
H A D | gss_release_oid_set.c | 33 #include <sys/kobj.h>
|
H A D | gss_test_oid_set_member.c | 33 #include <sys/kobj.h>
|
H A D | gss_wrap_size_limit.c | 33 #include <sys/kobj.h>
|
H A D | gss_release_cred.c | 33 #include <sys/kobj.h>
|
H A D | gss_add_oid_set_member.c | 33 #include <sys/kobj.h>
|
H A D | gss_canonicalize_name.c | 33 #include <sys/kobj.h>
|
H A D | gss_delete_sec_context.c | 33 #include <sys/kobj.h>
|
H A D | gss_display_status.c | 33 #include <sys/kobj.h>
|
/freebsd-10.2-release/sys/rpc/rpcsec_gss/ |
H A D | rpcsec_gss_misc.c | 31 #include <sys/kobj.h>
|
/freebsd-10.2-release/sys/cddl/compat/opensolaris/sys/ |
H A D | kobj.h | 26 * $FreeBSD: releng/10.2/sys/cddl/compat/opensolaris/sys/kobj.h 168508 2007-04-08 23:57:08Z pjd $ 34 #include_next <sys/kobj.h>
|
/freebsd-10.2-release/sys/cddl/contrib/opensolaris/uts/common/ctf/ |
H A D | ctf_subr.c | 30 #include <sys/kobj.h>
|
/freebsd-10.2-release/sys/ofed/drivers/infiniband/core/ |
H A D | sysfs.c | 45 struct kobject kobj; member in struct:ib_port 71 static ssize_t port_attr_show(struct kobject *kobj, argument 76 struct ib_port *p = container_of(kobj, struct ib_port, kobj); 460 static void ib_port_release(struct kobject *kobj) argument 462 struct ib_port *p = container_of(kobj, struct ib_port, kobj); 572 ret = kobject_init_and_add(&p->kobj, &port_type, 578 ret = sysfs_create_group(&p->kobj, &pma_group); 582 ret = sysfs_create_group(&p->kobj, [all...] |
/freebsd-10.2-release/sys/ofed/drivers/infiniband/hw/mlx4/ |
H A D | sysfs.c | 179 sysfs_remove_file((_dentry)->kobj, &(_dentry)->dentry.attr); \ 201 vdentry->kobj = _kobj; 210 ret = sysfs_create_file(vdentry->kobj, &vdentry->dentry.attr); 388 struct kobject kobj; member in struct:mlx4_port 397 static void mlx4_port_release(struct kobject *kobj) argument 399 struct mlx4_port *p = container_of(kobj, struct mlx4_port, kobj); 419 static ssize_t port_attr_show(struct kobject *kobj, argument 424 struct mlx4_port *p = container_of(kobj, struct mlx4_port, kobj); 431 port_attr_store(struct kobject *kobj, struct attribute *attr, const char *buf, size_t size) argument [all...] |
/freebsd-10.2-release/lib/librpcsec_gss/ |
H A D | rpcsec_gss_conf.c | 54 char *kobj; member in struct:mech_info 182 char *name, *oid, *lib, *kobj; local 205 kobj = strsep(&p, "\t\n "); 206 if (!name || !oid || !lib || !kobj) 219 info->kobj = strdup(kobj);
|