/third_party/rust/crates/rustix/src/mm/ |
H A D | mod.rs | 6 mod msync; modules 19 pub use msync::{msync, MsyncFlags};
|
H A D | msync.rs | 1 //! The `msync` function. 5 //! `msync` operates on a raw pointer. Some forms of `msync` may mutate the 14 /// `msync(addr, len, flags)`—Synchronizes a memory-mapping with its backing 20 /// call `msync` on. Some forms of `msync` may mutate the memory 25 /// - [Linux `msync`] 27 /// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/msync.html 28 /// [Linux `msync`]: https://man7.org/linux/man-pages/man2/msync 30 pub unsafe fn msync(addr: *mut c_void, len: usize, flags: MsyncFlags) -> io::Result<()> { msync() functions [all...] |
/third_party/ltp/testcases/kernel/mce-test/hwpoison/ |
H A D | tsimpleinj.c | 114 expecterr("msync expect error", msync(page, PS, MS_SYNC)); in main() 126 expecterr("hole msync expect error", msync(page, PS, MS_SYNC)); in main() 151 expecterr("rfp msync expect error", msync(page, PS, MS_SYNC)); in main()
|
/third_party/ltp/testcases/kernel/mce-test/tsrc/ |
H A D | tsimpleinj.c | 114 expecterr("msync expect error", msync(page, PS, MS_SYNC)); in main() 126 expecterr("hole msync expect error", msync(page, PS, MS_SYNC)); in main() 151 expecterr("rfp msync expect error", msync(page, PS, MS_SYNC)); in main()
|
/third_party/rust/crates/rustix/src/backend/libc/mm/ |
H A D | syscalls.rs | 54 pub(crate) unsafe fn msync(addr: *mut c::c_void, len: usize, flags: MsyncFlags) -> io::Result<()> { 55 let err = c::msync(addr, len, flags.bits()); 57 // `msync` returns its error status rather than using `errno`.
|
/third_party/rust/crates/rustix/tests/mm/ |
H A D | mmap.rs | 152 use rustix::mm::{mmap_anonymous, msync, munmap, MapFlags, MsyncFlags, ProtFlags}; in test_msync() 158 msync(addr, 8192, MsyncFlags::SYNC).unwrap(); in test_msync() 159 msync(addr, 8192, MsyncFlags::ASYNC).unwrap(); in test_msync()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/ |
H A D | 15-1-buildonly.c | 11 * int msync(void *, size_t, int) 25 dummyvar = msync; in dummyfcn()
|
/third_party/musl/src/mman/ |
H A D | msync.c | 5 int msync(void *start, size_t len, int flags) in msync() function
|
/third_party/musl/porting/liteos_a/user/src/mman/ |
H A D | msync.c | 5 int msync(void *start, size_t len, int flags) in msync() function
|
/third_party/musl/libc-test/src/functionalext/supplement/mman/ |
H A D | msync.c | 47 int rev = msync(map, TEST_MS_SIZE, MS_ASYNC); in msync_0100()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/mlockall/ |
H A D | 3-7.c | 13 * This test use msync to check that the page is locked. 62 result = msync(page_ptr, page_size, MS_SYNC | MS_INVALIDATE); in main()
|
H A D | 3-6.c | 13 * This test use msync to check that the page is locked. 71 result = msync(page_ptr, page_size, MS_SYNC | MS_INVALIDATE); in main()
|
/third_party/node/deps/v8/src/codegen/arm/ |
H A D | cpu-arm.cc | 32 msync(start, size, MS_SYNC | MS_INVALIDATE_ICACHE); in FlushICache()
|
/third_party/musl/libc-test/src/functionalext/supplement/mman/mman_gtest/ |
H A D | mman_msync_test.cpp | 14 * @tc.desc: This test verifies whether the msync function can successfully flush data from shared memory to a temporary 29 int rev = msync(map, testDataSize, MS_ASYNC); in HWTEST_F()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/mmap/ |
H A D | 12-1.c | 19 * 3. Acces and msync the mapped file 73 msync(pa, size, MS_SYNC); in main()
|
H A D | 7-2.c | 20 * 2. Modify the mapped memory, and call msync to try to synchronize the change. 74 if (msync(pa, size, MS_SYNC) != 0) { in main() 75 printf("Error at msync(): %s\n", strerror(errno)); in main()
|
H A D | 7-1.c | 21 * 3. Call msync() to synchronize the modification. 74 if (msync(pa, size, MS_SYNC) != 0) { in main() 75 printf("Error at msync(): %s\n", strerror(errno)); in main()
|
/third_party/ltp/testcases/kernel/syscalls/mremap/ |
H A D | mremap01.c | 133 if (msync(addr, newsize, MS_SYNC) != 0) { in main() 134 tst_resm(TFAIL | TERRNO, "msync failed to synch " in main()
|
/third_party/ltp/testcases/kernel/io/ltp-aiodio/ |
H A D | common_sparse.h | 51 msync(p, size, MS_SYNC); in dirty_freeblocks()
|
/third_party/ltp/testcases/kernel/mem/hugetlb/hugemmap/ |
H A D | hugemmap21.c | 39 if (msync(addr, size, MS_SYNC)) in do_work() 40 tst_brk(TBROK | TERRNO, "Thread %d (pid %d): msync() failed", in do_work()
|
/third_party/ltp/testcases/kernel/syscalls/msync/ |
H A D | msync01.c | 24 * Verify that, msync() succeeds, when the region to synchronize, is part 28 * msync() should succeed with a return value of 0, and successfully 103 TEST(msync(addr, page_sz, MS_ASYNC)); in main() 106 tst_resm(TFAIL | TTERRNO, "msync failed"); in main() 138 "Functionality of msync() successful"); in main()
|
H A D | msync02.c | 24 * Verify that msync() succeeds when the region to synchronize is mapped 28 * msync() should succeed with a return value of 0, and successfully 94 TEST(msync(addr, page_sz, MS_INVALIDATE)); in main() 97 tst_resm(TFAIL | TTERRNO, "msync failed"); in main() 101 tst_resm(TPASS, "Functionality of msync successful"); in main()
|
H A D | msync04.c | 8 * Test description: Verify msync() after writing into mmap()-ed file works. 11 * is no longer dirty after msync() call. 63 if (msync(mmaped_area, pagesize, MS_SYNC) < 0) { in test_msync() 64 tst_res(TFAIL | TERRNO, "msync() failed"); in test_msync() 69 tst_res(TFAIL, "msync() failed to write dirty page despite" in test_msync() 72 tst_res(TPASS, "msync() working correctly"); in test_msync()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/munmap/ |
H A D | 4-1.c | 13 * 2. Modify the mapped memory, and call msync to try to synchronize the change with 88 if ((rc = msync(pa, size, MS_SYNC)) != 0) { in main() 89 printf(TNAME " Error at msync(): %s\n", strerror(rc)); in main()
|
/third_party/musl/libc-test/src/api/ |
H A D | sys_mman.c | 51 {int(*p)(void*,size_t,int) = msync;} in f()
|