Searched refs:mmap_area (Results 1 – 5 of 5) sorted by relevance
/external/selinux/libselinux/src/ |
D | label_file.c | 123 struct mmap_area *mmap_area; in load_mmap() local 130 mmap_area = malloc(sizeof(*mmap_area)); in load_mmap() 131 if (!mmap_area) { in load_mmap() 137 free(mmap_area); in load_mmap() 143 mmap_area->addr = mmap_area->next_addr = addr; in load_mmap() 144 mmap_area->len = mmap_area->next_len = len; in load_mmap() 145 mmap_area->next = data->mmap_areas; in load_mmap() 146 data->mmap_areas = mmap_area; in load_mmap() 149 rc = next_entry(&magic, mmap_area, sizeof(uint32_t)); in load_mmap() 154 rc = next_entry(&version, mmap_area, sizeof(uint32_t)); in load_mmap() [all …]
|
D | regex.c | 111 int regex_load_mmap(struct mmap_area *mmap_area, struct regex_data **regex, in regex_load_mmap() argument 118 rc = next_entry(&entry_len, mmap_area, sizeof(uint32_t)); in regex_load_mmap() 127 rc = pcre2_serialize_get_number_of_codes(mmap_area->next_addr); in regex_load_mmap() 136 (PCRE2_SPTR)mmap_area->next_addr, in regex_load_mmap() 150 rc = next_entry(NULL, mmap_area, entry_len); in regex_load_mmap() 321 int regex_load_mmap(struct mmap_area *mmap_area, struct regex_data **regex, in regex_load_mmap() argument 328 rc = next_entry(&entry_len, mmap_area, sizeof(uint32_t)); in regex_load_mmap() 337 (*regex)->regex = (pcre *)mmap_area->next_addr; in regex_load_mmap() 338 rc = next_entry(NULL, mmap_area, entry_len); in regex_load_mmap() 350 rc = next_entry(&entry_len, mmap_area, sizeof(uint32_t)); in regex_load_mmap() [all …]
|
D | regex.h | 35 struct mmap_area; 109 int regex_load_mmap(struct mmap_area *map_area,
|
D | label_file.h | 65 struct mmap_area { struct 70 struct mmap_area *next; argument 89 struct mmap_area *mmap_areas; 326 static inline int next_entry(void *buf, struct mmap_area *fp, size_t bytes) in next_entry()
|
/external/ltp/testcases/kernel/mem/mmapstress/ |
D | mmapstress04.c | 33 static unsigned char *mmap_area; variable 43 mmap_area = SAFE_MMAP(NULL, page_size * NUM_PAGES, PROT_NONE, in setup() 87 SAFE_MMAP(mmap_area + page_size * mapped_pages++, in mmapstress04() 109 unsigned char val = *(mmap_area + i); in mmapstress04()
|