Lines Matching refs:prot
45 int prot;
149 assert_se(mmap(w->ptr, w->size, w->prot, MAP_PRIVATE|MAP_ANONYMOUS|MAP_FIXED, -1, 0) == w->ptr);
161 _pure_ static bool window_matches(Window *w, int fd, int prot, uint64_t offset, size_t size) {
169 prot == w->prot &&
174 static Window *window_add(MMapCache *m, FileDescriptor *fd, int prot, bool keep_always, uint64_t offset, size_t size, void *ptr) {
197 w->prot = prot;
384 int prot,
408 if (!window_matches(c->window, fd, prot, offset, size)) {
427 int prot,
453 if (window_matches(w, fd, prot, offset, size))
470 static int mmap_try_harder(MMapCache *m, void *addr, int fd, int prot, int flags, uint64_t offset, size_t size, void **res) {
480 ptr = mmap(addr, size, prot, flags, fd, offset);
500 int prot,
550 r = mmap_try_harder(m, NULL, fd, prot, MAP_SHARED, woffset, wsize, &d);
562 w = window_add(m, f, prot, keep_always, woffset, wsize, d);
581 int prot,
599 r = try_context(m, fd, prot, context, keep_always, offset, size, ret);
606 r = find_mmap(m, fd, prot, context, keep_always, offset, size, ret);
615 return add_mmap(m, fd, prot, context, keep_always, offset, size, st, ret);