Lines Matching refs:kobj
40 struct kobject *kobj = attr_sd->s_parent->s_dir.kobj; in fill_read() local
49 rc = attr->read(kobj, attr, buffer, off, count); in fill_read()
111 struct kobject *kobj = attr_sd->s_parent->s_dir.kobj; in flush_write() local
120 rc = attr->write(kobj, attr, buffer, offset, count); in flush_write()
176 struct kobject *kobj = attr_sd->s_parent->s_dir.kobj; in mmap() local
187 rc = attr->mmap(kobj, attr, vma); in mmap()
265 int sysfs_create_bin_file(struct kobject * kobj, struct bin_attribute * attr) in sysfs_create_bin_file() argument
267 BUG_ON(!kobj || !kobj->sd || !attr); in sysfs_create_bin_file()
269 return sysfs_add_file(kobj->sd, &attr->attr, SYSFS_KOBJ_BIN_ATTR); in sysfs_create_bin_file()
279 void sysfs_remove_bin_file(struct kobject * kobj, struct bin_attribute * attr) in sysfs_remove_bin_file() argument
281 sysfs_hash_and_remove(kobj->sd, attr->attr.name); in sysfs_remove_bin_file()