Searched refs:mmap_area (Results 1 – 4 of 4) sorted by relevance
/external/selinux/libselinux/src/ |
D | label_file.c | 124 struct mmap_area *mmap_area; in load_mmap() local 131 mmap_area = malloc(sizeof(*mmap_area)); in load_mmap() 132 if (!mmap_area) { in load_mmap() 138 free(mmap_area); in load_mmap() 144 mmap_area->addr = mmap_area->next_addr = addr; in load_mmap() 145 mmap_area->len = mmap_area->next_len = len; in load_mmap() 146 mmap_area->next = data->mmap_areas; in load_mmap() 147 data->mmap_areas = mmap_area; in load_mmap() 150 rc = next_entry(&magic, mmap_area, sizeof(uint32_t)); in load_mmap() 155 rc = next_entry(&version, mmap_area, sizeof(uint32_t)); in load_mmap() [all …]
|
D | regex.c | 108 int regex_load_mmap(struct mmap_area *mmap_area, struct regex_data **regex, in regex_load_mmap() argument 114 rc = next_entry(&entry_len, mmap_area, sizeof(uint32_t)); in regex_load_mmap() 123 rc = pcre2_serialize_get_number_of_codes(mmap_area->next_addr); in regex_load_mmap() 132 (PCRE2_SPTR)mmap_area->next_addr, in regex_load_mmap() 144 rc = next_entry(NULL, mmap_area, entry_len); in regex_load_mmap() 304 int regex_load_mmap(struct mmap_area *mmap_area, struct regex_data **regex, in regex_load_mmap() argument 311 rc = next_entry(&entry_len, mmap_area, sizeof(uint32_t)); in regex_load_mmap() 320 (*regex)->regex = (pcre *)mmap_area->next_addr; in regex_load_mmap() 321 rc = next_entry(NULL, mmap_area, entry_len); in regex_load_mmap() 333 rc = next_entry(&entry_len, mmap_area, sizeof(uint32_t)); in regex_load_mmap() [all …]
|
D | regex.h | 34 struct mmap_area; 105 int regex_load_mmap(struct mmap_area *map_area,
|
D | label_file.h | 54 struct mmap_area { struct 59 struct mmap_area *next; argument 78 struct mmap_area *mmap_areas; 309 static inline int next_entry(void *buf, struct mmap_area *fp, size_t bytes) in next_entry()
|