Lines Matching defs:attr
66 struct configfs_attribute * attr = to_attr(dentry);
77 count = ops->show_attribute(item,attr,buffer->page);
172 struct configfs_attribute * attr = to_attr(dentry);
176 return ops->store_attribute(item,attr,buffer->page,count);
216 struct configfs_attribute * attr = to_attr(file->f_path.dentry);
221 if (!item || !attr)
225 if (!try_module_get(attr->ca_owner)) {
275 module_put(attr->ca_owner);
290 struct configfs_attribute * attr = to_attr(filp->f_path.dentry);
291 struct module * owner = attr->ca_owner;
296 /* After this point, attr should not be accessed. */
317 int configfs_add_file(struct dentry * dir, const struct configfs_attribute * attr, int type)
320 umode_t mode = (attr->ca_mode & S_IALLUGO) | S_IFREG;
324 error = configfs_make_dirent(parent_sd, NULL, (void *) attr, mode, type);
334 * @attr: atrribute descriptor.
337 int configfs_create_file(struct config_item * item, const struct configfs_attribute * attr)
339 BUG_ON(!item || !item->ci_dentry || !attr);
341 return configfs_add_file(item->ci_dentry, attr,