Lines Matching defs:element

33  * tomoyo_struct_used_by_io_buffer - Check whether the list element is used by /sys/kernel/security/tomoyo/ users or not.
35 * @element: Pointer to "struct list_head".
37 * Returns true if @element is used by /sys/kernel/security/tomoyo/ users,
40 static bool tomoyo_struct_used_by_io_buffer(const struct list_head *element)
50 if (head->r.domain == element || head->r.group == element ||
51 head->r.acl == element || &head->w.domain->list == element)
105 * @element: Pointer to "struct list_head".
109 static inline void tomoyo_del_transition_control(struct list_head *element)
112 container_of(element, typeof(*ptr), head.list);
121 * @element: Pointer to "struct list_head".
125 static inline void tomoyo_del_aggregator(struct list_head *element)
128 container_of(element, typeof(*ptr), head.list);
137 * @element: Pointer to "struct list_head".
141 static inline void tomoyo_del_manager(struct list_head *element)
144 container_of(element, typeof(*ptr), head.list);
152 * @element: Pointer to "struct list_head".
156 static void tomoyo_del_acl(struct list_head *element)
159 container_of(element, typeof(*acl), list);
245 * @element: Pointer to "struct list_head".
251 static inline void tomoyo_del_domain(struct list_head *element)
254 container_of(element, typeof(*domain), list);
273 * @element: Pointer to "struct list_head".
277 void tomoyo_del_condition(struct list_head *element)
279 struct tomoyo_condition *cond = container_of(element, typeof(*cond),
313 * @element: Pointer to "struct list_head".
317 static inline void tomoyo_del_name(struct list_head *element)
325 * @element: Pointer to "struct list_head".
329 static inline void tomoyo_del_path_group(struct list_head *element)
332 container_of(element, typeof(*member), head.list);
340 * @element: Pointer to "struct list_head".
344 static inline void tomoyo_del_group(struct list_head *element)
347 container_of(element, typeof(*group), head.list);
355 * @element: Pointer to "struct list_head".
359 static inline void tomoyo_del_address_group(struct list_head *element)
367 * @element: Pointer to "struct list_head".
371 static inline void tomoyo_del_number_group(struct list_head *element)
380 * @element: Pointer to "struct list_head".
387 struct list_head *element)
390 * __list_del_entry() guarantees that the list element became no longer
391 * reachable from the list which the element was originally on (e.g.
393 * list element became no longer referenced by syscall users.
395 __list_del_entry(element);
400 * element. We need to defer until both users forget this element.
403 * and "struct tomoyo_io_buffer"->w.domain forget this element.
405 if (tomoyo_struct_used_by_io_buffer(element))
409 tomoyo_del_transition_control(element);
412 tomoyo_del_manager(element);
415 tomoyo_del_aggregator(element);
418 tomoyo_del_group(element);
421 tomoyo_del_path_group(element);
424 tomoyo_del_address_group(element);
427 tomoyo_del_number_group(element);
430 tomoyo_del_condition(element);
435 * forget this element.
438 (container_of(element, typeof(struct tomoyo_name),
441 tomoyo_del_name(element);
444 tomoyo_del_acl(element);
449 * element.
452 (element, typeof(struct tomoyo_domain_info),
461 tomoyo_del_domain(element);
462 tomoyo_memory_free(element);
466 * We can safely reinject this element here bacause
474 list_add_rcu(element, element->prev);