Lines Matching defs:ptr
63 * @ptr: Pointer to "struct tomoyo_name_union".
67 void tomoyo_put_name_union(struct tomoyo_name_union *ptr)
69 tomoyo_put_group(ptr->group);
70 tomoyo_put_name(ptr->filename);
77 * @ptr: Pointer to "struct tomoyo_name_union".
79 * Returns "struct tomoyo_path_info" if @name matches @ptr, NULL otherwise.
83 const struct tomoyo_name_union *ptr)
85 if (ptr->group)
86 return tomoyo_path_matches_group(name, ptr->group);
87 if (tomoyo_path_matches_pattern(name, ptr->filename))
88 return ptr->filename;
95 * @ptr: Pointer to "struct tomoyo_number_union".
99 void tomoyo_put_number_union(struct tomoyo_number_union *ptr)
101 tomoyo_put_group(ptr->group);
108 * @ptr: Pointer to "struct tomoyo_number_union".
110 * Returns true if @value matches @ptr, false otherwise.
113 const struct tomoyo_number_union *ptr)
115 if (ptr->group)
116 return tomoyo_number_matches_group(value, value, ptr->group);
117 return value >= ptr->values[0] && value <= ptr->values[1];
244 * @ptr: Pointer to "struct tomoyo_acl_info".
253 const struct tomoyo_acl_info *ptr)
255 const struct tomoyo_path_acl *acl = container_of(ptr, typeof(*acl),
271 * @ptr: Pointer to "struct tomoyo_acl_info".
276 const struct tomoyo_acl_info *ptr)
279 container_of(ptr, typeof(*acl), head);
292 * @ptr: Pointer to "struct tomoyo_acl_info".
297 const struct tomoyo_acl_info *ptr)
300 container_of(ptr, typeof(*acl), head);
312 * @ptr: Pointer to "struct tomoyo_acl_info".
317 const struct tomoyo_acl_info *ptr)
320 container_of(ptr, typeof(*acl), head);