Home
last modified time | relevance | path

Searched refs:mmap (Results 1 – 25 of 52) sorted by relevance

123

/systemd-251/src/journal-remote/
Djournal-remote-write.c29 w->mmap = mmap_cache_new(); in writer_new()
30 if (!w->mmap) in writer_new()
53 if (w->mmap) in writer_free()
54 mmap_cache_unref(w->mmap); in writer_free()
75 r = do_rotate(&w->journal, w->mmap, file_flags); in writer_write()
91 r = do_rotate(&w->journal, w->mmap, file_flags); in writer_write()
Djournal-remote-write.h13 MMapCache *mmap; member
/systemd-251/src/basic/
Dmemfd-util.c68 q = mmap(NULL, size, PROT_READ, MAP_PRIVATE, fd, offset); in memfd_map()
70 q = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, offset); in memfd_map()
Dsigbus.c105 …assert_se(mmap(aligned, page_size(), PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_FIXED, -1… in sigbus_handler()
Dlocale-util.c119 p = mmap(NULL, st.st_size, PROT_READ, MAP_SHARED, fd, 0); in add_locales_from_archive()
Dsyscall-list.txt218 mmap
Dsyscalls-alpha.txt218 mmap 71
Dsyscalls-arc.txt218 mmap
Dsyscalls-arm.txt218 mmap
Dsyscalls-arm64.txt218 mmap 222
Dsyscalls-i386.txt218 mmap 90
/systemd-251/test/test-execute/
Dexec-systemcallfilter-failing2.service9 SystemCallFilter=~write open execve fexecve execveat exit_group close mmap munmap fstat DONOTEXIST
Dexec-systemcallfilter-failing3.service10 SystemCallFilter=~write open execve fexecve execveat exit_group close mmap munmap fstat DONOTEXIST
/systemd-251/src/libsystemd/
Dmeson.build20 'sd-journal/mmap-cache.c',
21 'sd-journal/mmap-cache.h',
205 [files('sd-journal/test-mmap-cache.c')],
/systemd-251/src/test/
Dtest-sigbus.c41 p = mmap(NULL, page_size() * 16, PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0); in main()
Dtest-seccomp.c611 p = mmap(NULL, page_size(), PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANONYMOUS, -1,0); in TEST()
615 p = mmap(NULL, page_size(), PROT_WRITE|PROT_READ, MAP_PRIVATE|MAP_ANONYMOUS, -1,0); in TEST()
621 p = mmap(NULL, page_size(), PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANONYMOUS, -1,0); in TEST()
631 p = mmap(NULL, page_size(), PROT_WRITE|PROT_READ, MAP_PRIVATE|MAP_ANONYMOUS, -1,0); in TEST()
647 … log_debug("arch %s: SCMP_SYS(mmap) = %d", seccomp_arch_to_string(arch), SCMP_SYS(mmap)); in TEST()
/systemd-251/src/libsystemd/sd-journal/
Djournal-internal.h76 MMapCache *mmap; member
Djournal-authenticate.c349 m = mmap(NULL, PAGE_ALIGN(sizeof(FSSHeader)), PROT_READ, MAP_SHARED, fd, 0); in journal_file_fss_load()
393 … f->fss_file = mmap(NULL, PAGE_ALIGN(f->fss_file_size), PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0); in journal_file_fss_load()
Dmmap-cache.c123 …assert_se(mmap(w->ptr, w->size, w->fd->prot, MAP_PRIVATE|MAP_ANONYMOUS|MAP_FIXED, -1, 0) == w->ptr… in window_invalidate()
346 ptr = mmap(addr, size, f->prot, flags, f->fd, offset); in mmap_try_harder()
Dsd-journal.c1338 r = journal_file_open(fd, path, O_RDONLY, 0, 0, 0, NULL, j->mmap, NULL, &f); in add_any_file()
1922 j->mmap = mmap_cache_new(); in journal_new()
1923 if (!j->files_cache || !j->directories_by_path || !j->mmap) in journal_new()
2162 if (j->mmap) { in sd_journal_close()
2163 mmap_cache_stats_log_debug(j->mmap); in sd_journal_close()
2164 mmap_cache_unref(j->mmap); in sd_journal_close()
/systemd-251/src/journal/
Djournald-server.c286 s->mmap, in open_journal()
299 s->mmap, in open_journal()
492 …r = managed_journal_file_rotate(f, s->mmap, file_flags, s->compress.threshold_bytes, s->deferred_c… in do_rotate()
612 s->mmap, in vacuum_offline_user_journals()
2369 s->mmap = mmap_cache_new(); in server_init()
2370 if (!s->mmap) in server_init()
2615 mmap_cache_unref(s->mmap); in server_done()
Djournald-server.h140 MMapCache *mmap; member
Djournald-kmsg.c459 p = mmap(NULL, sizeof(uint64_t), PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0); in server_open_kernel_seqnum()
/systemd-251/src/shared/
Dtests.c193 … void *p = mmap(NULL, CAN_MEMLOCK_SIZE, PROT_READ|PROT_WRITE, MAP_ANONYMOUS|MAP_SHARED, -1, 0); in can_memlock()
Dseccomp-util.c1700 block_syscall = SCMP_SYS(mmap); in seccomp_memory_deny_write_execute()
1708 filter_syscall = SCMP_SYS(mmap); in seccomp_memory_deny_write_execute()
1723 … filter_syscall = SCMP_SYS(mmap); /* amd64, x32, arm64 and riscv64 have only mmap */ in seccomp_memory_deny_write_execute()

123