Home
last modified time | relevance | path

Searched refs:msync (Results 1 - 25 of 69) sorted by relevance

123

/third_party/rust/crates/rustix/src/mm/
H A Dmod.rs6 mod msync; modules
19 pub use msync::{msync, MsyncFlags};
H A Dmsync.rs1 //! 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 Dtsimpleinj.c114 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 Dtsimpleinj.c114 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 Dsyscalls.rs54 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 Dmmap.rs152 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 D15-1-buildonly.c11 * int msync(void *, size_t, int)
25 dummyvar = msync; in dummyfcn()
/third_party/musl/src/mman/
H A Dmsync.c5 int msync(void *start, size_t len, int flags) in msync() function
/third_party/musl/porting/liteos_a/user/src/mman/
H A Dmsync.c5 int msync(void *start, size_t len, int flags) in msync() function
/third_party/musl/libc-test/src/functionalext/supplement/mman/
H A Dmsync.c47 int rev = msync(map, TEST_MS_SIZE, MS_ASYNC); in msync_0100()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/mlockall/
H A D3-7.c13 * 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 D3-6.c13 * 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 Dcpu-arm.cc32 msync(start, size, MS_SYNC | MS_INVALIDATE_ICACHE); in FlushICache()
/third_party/musl/libc-test/src/functionalext/supplement/mman/mman_gtest/
H A Dmman_msync_test.cpp14 * @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 D12-1.c19 * 3. Acces and msync the mapped file
73 msync(pa, size, MS_SYNC); in main()
H A D7-2.c20 * 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 D7-1.c21 * 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 Dmremap01.c133 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 Dcommon_sparse.h51 msync(p, size, MS_SYNC); in dirty_freeblocks()
/third_party/ltp/testcases/kernel/mem/hugetlb/hugemmap/
H A Dhugemmap21.c39 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 Dmsync01.c24 * 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 Dmsync02.c24 * 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 Dmsync04.c8 * 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 D4-1.c13 * 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 Dsys_mman.c51 {int(*p)(void*,size_t,int) = msync;} in f()

Completed in 7 milliseconds

123