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 | 105 int regex_load_mmap(struct mmap_area *mmap_area, struct regex_data **regex, in regex_load_mmap() argument 112 rc = next_entry(&entry_len, mmap_area, sizeof(uint32_t)); in regex_load_mmap() 121 rc = pcre2_serialize_get_number_of_codes(mmap_area->next_addr); in regex_load_mmap() 130 (PCRE2_SPTR)mmap_area->next_addr, in regex_load_mmap() 139 rc = next_entry(NULL, mmap_area, entry_len); in regex_load_mmap() 366 int regex_load_mmap(struct mmap_area *mmap_area, struct regex_data **regex, in regex_load_mmap() argument 373 rc = next_entry(&entry_len, mmap_area, sizeof(uint32_t)); in regex_load_mmap() 382 (*regex)->regex = (pcre *)mmap_area->next_addr; in regex_load_mmap() 383 rc = next_entry(NULL, mmap_area, entry_len); in regex_load_mmap() 395 rc = next_entry(&entry_len, mmap_area, sizeof(uint32_t)); in regex_load_mmap() [all …]
|
D | regex.h | 34 struct mmap_area; 108 int regex_load_mmap(struct mmap_area *map_area,
|
D | label_file.h | 69 struct mmap_area { struct 74 struct mmap_area *next; argument 93 struct mmap_area *mmap_areas; 334 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 | 21 static unsigned char *mmap_area; variable 31 mmap_area = SAFE_MMAP(NULL, page_size * NUM_PAGES, PROT_NONE, in setup() 64 SAFE_MMAP(mmap_area + page_size * mapped_pages++, in mmapstress04() 86 unsigned char val = *(mmap_area + i); in mmapstress04()
|