Home
last modified time | relevance | path

Searched refs:mmap_area (Results 1 – 5 of 5) sorted by relevance

/external/selinux/libselinux/src/
Dlabel_file.c123 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 …]
Dregex.c111 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 …]
Dregex.h35 struct mmap_area;
109 int regex_load_mmap(struct mmap_area *map_area,
Dlabel_file.h69 struct mmap_area { struct
74 struct mmap_area *next; argument
93 struct mmap_area *mmap_areas;
330 static inline int next_entry(void *buf, struct mmap_area *fp, size_t bytes) in next_entry()
/external/ltp/testcases/kernel/mem/mmapstress/
Dmmapstress04.c21 static unsigned char *mmap_area; variable
31 mmap_area = SAFE_MMAP(NULL, page_size * NUM_PAGES, PROT_NONE, in setup()
75 SAFE_MMAP(mmap_area + page_size * mapped_pages++, in mmapstress04()
97 unsigned char val = *(mmap_area + i); in mmapstress04()