Lines Matching defs:ptr
243 * @ptr: Pointer to "struct tomoyo_name_union".
248 struct tomoyo_name_union *ptr)
254 ptr->group = tomoyo_get_group(param, TOMOYO_PATH_GROUP);
255 return ptr->group != NULL;
260 ptr->filename = tomoyo_get_name(filename);
261 return ptr->filename != NULL;
268 * @ptr: Pointer to "struct tomoyo_number_union".
273 struct tomoyo_number_union *ptr)
279 memset(ptr, 0, sizeof(*ptr));
282 ptr->group = tomoyo_get_group(param, TOMOYO_NUMBER_GROUP);
283 return ptr->group != NULL;
289 ptr->values[0] = v;
290 ptr->value_type[0] = type;
292 ptr->values[1] = v;
293 ptr->value_type[1] = type;
299 if (type == TOMOYO_VALUE_TYPE_INVALID || *data || ptr->values[0] > v)
301 ptr->values[1] = v;
302 ptr->value_type[1] = type;
668 * @ptr: Pointer to "struct tomoyo_path_info" to fill in.
672 void tomoyo_fill_path_info(struct tomoyo_path_info *ptr)
674 const char *name = ptr->name;
677 ptr->const_len = tomoyo_const_part_length(name);
678 ptr->is_dir = len && (name[len - 1] == '/');
679 ptr->is_patterned = (ptr->const_len < len);
680 ptr->hash = full_name_hash(NULL, name, len);
1043 struct tomoyo_acl_info *ptr;
1051 list_for_each_entry_rcu(ptr, &domain->acl_info_list, list,
1055 if (ptr->is_deleted)
1062 switch (ptr->type) {
1064 perm = data_race(container_of(ptr, struct tomoyo_path_acl, head)->perm);
1067 perm = data_race(container_of(ptr, struct tomoyo_path2_acl, head)->perm);
1070 perm = data_race(container_of(ptr, struct tomoyo_path_number_acl, head)
1074 perm = data_race(container_of(ptr, struct tomoyo_mkdev_acl, head)->perm);
1077 perm = data_race(container_of(ptr, struct tomoyo_inet_acl, head)->perm);
1080 perm = data_race(container_of(ptr, struct tomoyo_unix_acl, head)->perm);