Home
last modified time | relevance | path

Searched refs:MADV_DONTNEED (Results 1 - 25 of 50) sorted by relevance

12

/third_party/ltp/testcases/kernel/syscalls/madvise/
H A Dmadvise03.c10 * Check that successful madvise(2) MADV_DONTNEED operation will result in
26 TEST(madvise(addr, MAP_SIZE, MADV_DONTNEED)); in run()
29 addr, MAP_SIZE, MADV_DONTNEED); in run()
H A Dmadvise02.c16 * locked or shared pages (with MADV_DONTNEED)
71 {MADV_DONTNEED, "MADV_DONTNEED", &file1, EINVAL, 1},
91 case MADV_DONTNEED: in tcases_filter()
H A Dmadvise01.c43 {MADV_DONTNEED, "MADV_DONTNEED", &sfile},
/third_party/ltp/testcases/kernel/mem/thp/
H A Dthp04.c106 madvise(write_thp, thp_size, MADV_DONTNEED); in thread_run()
128 madvise(write_thp, thp_size, MADV_DONTNEED); in run()
133 madvise(read_thp, thp_size, MADV_DONTNEED); in run()
/third_party/musl/src/mman/
H A Dposix_madvise.c9 if (advice == MADV_DONTNEED) return 0; in posix_madvise()
/third_party/musl/porting/liteos_a/user/src/mman/
H A Dposix_madvise.c9 if (advice == MADV_DONTNEED) return 0; in posix_madvise()
/third_party/ltp/testcases/kernel/security/dirtyc0w/
H A Ddirtyc0w_child.c29 * You have to race madvise(MADV_DONTNEED) ::
32 * This is achieved by racing the madvise(MADV_DONTNEED) system call while
42 c += madvise(map, 100, MADV_DONTNEED); in madvise_thread()
/third_party/musl/libc-test/src/functionalext/supplement/mman/
H A Dposix_madvise.c88 * @tc.desc : When the advice parameter is passed to MADV_DONTNEED
96 int ret = posix_madvise(ptr, len, MADV_DONTNEED); in posix_madvise_0300()
/third_party/rust/crates/rustix/src/backend/libc/mm/
H A Dsyscalls.rs22 // On Linux platforms, `MADV_DONTNEED` has the same value as
27 return unsafe { ret(c::madvise(addr, len, c::MADV_DONTNEED)) };
45 // Do nothing. Linux's `MADV_DONTNEED` isn't the same as
46 // `POSIX_MADV_DONTNEED`, so just discard `MADV_DONTNEED`.
H A Dtypes.rs335 /// `MADV_DONTNEED`
336 // `MADV_DONTNEED` has the same value as `POSIX_MADV_DONTNEED`. We don't
342 /// `MADV_DONTNEED`
344 LinuxDontNeed = c::MADV_DONTNEED,
/third_party/node/deps/v8/src/base/platform/
H A Dplatform-posix.cc84 #define MADV_FREE MADV_DONTNEED
521 // MADV_FREE_REUSABLE sometimes fails, so fall back to MADV_DONTNEED. in DiscardSystemPages()
522 ret = madvise(address, size, MADV_DONTNEED); in DiscardSystemPages()
529 ret = madvise(reinterpret_cast<caddr_t>(address), size, MADV_DONTNEED); in DiscardSystemPages()
531 int ret = madvise(address, size, MADV_DONTNEED); in DiscardSystemPages()
/third_party/musl/porting/liteos_a_newlib/kernel/include/sys/
H A Dmman.h77 #define MADV_DONTNEED 4 macro
/third_party/musl/porting/liteos_m/kernel/include/sys/
H A Dmman.h82 #define MADV_DONTNEED 4 macro
/third_party/musl/porting/uniproton/kernel/include/sys/
H A Dmman.h82 #define MADV_DONTNEED 4 macro
/third_party/musl/porting/liteos_a/kernel/include/sys/
H A Dmman.h86 #define MADV_DONTNEED 4 macro
/third_party/musl/porting/liteos_m_iccarm/kernel/include/sys/
H A Dmman.h82 #define MADV_DONTNEED 4 macro
/third_party/musl/include/sys/
H A Dmman.h83 #define MADV_DONTNEED 4 macro
/third_party/ltp/testcases/kernel/security/dirtyc0w_shmem/
H A Ddirtyc0w_shmem_child.c58 madvise(map, page_size, MADV_DONTNEED); in discard_thread_fn()
211 * Thread 1: madvise(map, 4096, MADV_DONTNEED); in main()
/third_party/rust/crates/rustix/src/backend/linux_raw/mm/
H A Dtypes.rs158 /// `MADV_DONTNEED`
159 LinuxDontNeed = linux_raw_sys::general::MADV_DONTNEED,
204 /// Linux's `MADV_DONTNEED` differs from `POSIX_MADV_DONTNEED`. See
/third_party/pulseaudio/src/pulsecore/
H A Dshm.c349 #ifdef MADV_DONTNEED in pa_shm_punch()
350 madvise(ptr, size, MADV_DONTNEED); in pa_shm_punch()
/third_party/musl/Benchmark/musl/
H A Dlibc_mman.cpp70 MADV_DONTNEED,
/third_party/rust/crates/nix/src/sys/
H A Dmman.rs229 MADV_DONTNEED,
/third_party/python/Modules/
H A Dmmapmodule.c1698 #ifdef MADV_DONTNEED in mmap_exec()
1699 ADD_INT_MACRO(module, MADV_DONTNEED); in mmap_exec()
/third_party/musl/src/malloc/oldmalloc/
H A Dmalloc.c586 __madvise((void *)a, b-a, MADV_DONTNEED); in __bin_chunk()
/third_party/musl/porting/liteos_a/user/src/malloc/oldmalloc/
H A Dmalloc.c486 __madvise((void *)a, b-a, MADV_DONTNEED); in __bin_chunk()

Completed in 15 milliseconds

12