Searched refs:simple_child (Results 1 - 2 of 2) sorted by relevance

/linux-4.1.27/Documentation/filesystems/configfs/
H A Dconfigfs_example_explicit.c198 struct simple_child { struct
203 static inline struct simple_child *to_simple_child(struct config_item *item) to_simple_child()
205 return item ? container_of(item, struct simple_child, item) : NULL; to_simple_child()
224 struct simple_child *simple_child = to_simple_child(item); simple_child_attr_show() local
226 count = sprintf(page, "%d\n", simple_child->storeme); simple_child_attr_show()
235 struct simple_child *simple_child = to_simple_child(item); simple_child_attr_store() local
246 simple_child->storeme = tmp; simple_child_attr_store()
280 struct simple_child *simple_child; simple_children_make_item() local
282 simple_child = kzalloc(sizeof(struct simple_child), GFP_KERNEL); simple_children_make_item()
283 if (!simple_child) simple_children_make_item()
286 config_item_init_type_name(&simple_child->item, name, simple_children_make_item()
289 simple_child->storeme = 0; simple_children_make_item()
291 return &simple_child->item; simple_children_make_item()
359 * a new simple_children group. That group can then have simple_child
H A Dconfigfs_example_macros.c161 struct simple_child { struct
166 static inline struct simple_child *to_simple_child(struct config_item *item) to_simple_child()
168 return item ? container_of(item, struct simple_child, item) : NULL; to_simple_child()
187 struct simple_child *simple_child = to_simple_child(item); simple_child_attr_show() local
189 count = sprintf(page, "%d\n", simple_child->storeme); simple_child_attr_show()
198 struct simple_child *simple_child = to_simple_child(item); simple_child_attr_store() local
209 simple_child->storeme = tmp; simple_child_attr_store()
243 struct simple_child *simple_child; simple_children_make_item() local
245 simple_child = kzalloc(sizeof(struct simple_child), GFP_KERNEL); simple_children_make_item()
246 if (!simple_child) simple_children_make_item()
249 config_item_init_type_name(&simple_child->item, name, simple_children_make_item()
252 simple_child->storeme = 0; simple_children_make_item()
254 return &simple_child->item; simple_children_make_item()
322 * a new simple_children group. That group can then have simple_child

Completed in 95 milliseconds