/freebsd-current/sys/ofed/drivers/infiniband/core/ |
H A D | ib_uverbs_std_types_mr.c | 50 enum ib_uverbs_advise_mr_advice advice; local 61 ret = uverbs_get_const(&advice, attrs, UVERBS_ATTR_ADVISE_MR_ADVICE); 77 return ib_dev->advise_mr(pd, advice, flags, sg_list, num_sge,
|
/freebsd-current/contrib/llvm-project/compiler-rt/lib/profile/ |
H A D | WindowsMMap.h | 76 int madvise(void *addr, size_t length, int advice);
|
H A D | WindowsMMap.c | 116 int madvise(void *addr, size_t length, int advice) argument 118 if (advice != MADV_DONTNEED)
|
/freebsd-current/contrib/ofed/libibverbs/ |
H A D | memory.c | 590 static int ibv_madvise_range(void *base, size_t size, int advice) argument 613 inc = advice == MADV_DONTFORK ? 1 : -1; 644 advice); 648 advice); 657 advice = advice == MADV_DONTFORK ?
|
/freebsd-current/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_solaris.cpp | 87 int internal_madvise(uptr addr, uptr length, int advice) { argument 88 return madvise((void *)addr, length, advice);
|
H A D | sanitizer_posix.h | 45 int internal_madvise(uptr addr, uptr length, int advice);
|
H A D | sanitizer_netbsd.cpp | 119 int internal_madvise(uptr addr, uptr length, int advice) { argument 121 return _REAL(madvise, (void *)addr, length, advice);
|
H A D | sanitizer_mac.cpp | 157 int internal_madvise(uptr addr, uptr length, int advice) { argument 158 return madvise((void *)addr, length, advice);
|
H A D | sanitizer_linux.cpp | 233 int internal_madvise(uptr addr, uptr length, int advice) { argument 234 return internal_syscall(SYSCALL(madvise), addr, length, advice);
|
/freebsd-current/sys/compat/linux/ |
H A D | linux_file.c | 1560 convert_fadvice(int advice) argument 1562 switch (advice) { 1584 int advice; local 1592 advice = convert_fadvice(args->advice); 1593 if (advice == -1) 1595 return (kern_posix_fadvise(td, args->fd, offset, args->len, advice)); 1603 int advice; local 1613 advice = convert_fadvice(args->advice); [all...] |
/freebsd-current/sys/vm/ |
H A D | vm_object.c | 1275 * Determine whether the given advice can be applied to the object. Advice is 1281 vm_object_advice_applies(vm_object_t object, int advice) argument 1286 if (advice != MADV_FREE) 1293 vm_object_madvise_freespace(vm_object_t object, int advice, vm_pindex_t pindex, argument 1297 if (advice == MADV_FREE) 1323 int advice) 1334 if (!vm_object_advice_applies(object, advice)) { 1356 vm_object_madvise_freespace(object, advice, 1365 vm_object_madvise_freespace(tobject, advice, 1380 if (!vm_object_advice_applies(tobject, advice)) 1322 vm_object_madvise(vm_object_t object, vm_pindex_t pindex, vm_pindex_t end, int advice) argument [all...] |
H A D | pmap.h | 122 int advice);
|
H A D | vm_page.h | 604 void vm_page_advise(vm_page_t m, int advice);
|
H A D | vm_page.c | 4473 * Apply the specified advice to the given page. 4476 vm_page_advise(vm_page_t m, int advice) argument 4482 if (advice == MADV_FREE) 4490 else if (advice != MADV_DONTNEED) { 4491 if (advice == MADV_WILLNEED) 4496 if (advice != MADV_FREE && m->dirty == 0 && pmap_is_modified(m))
|
/freebsd-current/lib/libsysdecode/ |
H A D | flags.c | 260 sysdecode_fadvice(int advice) argument 263 return (lookup_value(fadvisebehav, advice)); 486 sysdecode_madvice(int advice) argument 489 return (lookup_value(madvisebehav, advice));
|
/freebsd-current/tests/sys/posixshm/ |
H A D | posixshm_test.c | 1481 largepage_madvise(char *addr, size_t sz, int advice, int error) argument 1484 ATF_REQUIRE_MSG(madvise(addr, sz, advice) == 0, 1485 "madvise(%zu, %d) failed; error=%d", sz, advice, errno); local 1487 ATF_REQUIRE_MSG(madvise(addr, sz, advice) != 0, 1488 "madvise(%zu, %d) succeeded", sz, advice); local 1491 errno, sz, advice);
|
/freebsd-current/sys/i386/i386/ |
H A D | pmap_base.c | 610 pmap_advise(pmap_t pmap, vm_offset_t sva, vm_offset_t eva, int advice) argument 613 pmap_methods_ptr->pm_advise(pmap, sva, eva, advice);
|
H A D | pmap.c | 5280 * Apply the given advice to the specified range of addresses within the 5281 * given pmap. Depending on the advice, clear the referenced and/or 5286 int advice) 5294 if (advice != MADV_DONTNEED && advice != MADV_FREE) 5365 if (advice == MADV_DONTNEED) {
|
/freebsd-current/sys/contrib/openzfs/module/os/linux/zfs/ |
H A D | zpl_file.c | 925 zpl_fadvise(struct file *filp, loff_t offset, loff_t len, int advice) argument 942 switch (advice) { 947 error = generic_fadvise(filp, offset, len, advice);
|
/freebsd-current/sys/kern/ |
H A D | vfs_vnops.c | 1077 int advice; local 1104 advice = get_advice(fp, uio); 1107 switch (advice) { 1126 if (error == 0 && advice == POSIX_FADV_NOREUSE && 1149 int advice; local 1174 advice = get_advice(fp, uio); 1177 switch (advice) { 1198 if (error == 0 && advice == POSIX_FADV_NOREUSE &&
|
H A D | vfs_syscalls.c | 4770 int advice) 4780 AUDIT_ARG_VALUE(advice); 4781 switch (advice) { 4818 switch (advice) { 4829 if (fa != NULL && fa->fa_advice == advice && 4838 new->fa_advice = advice; 4880 error = VOP_ADVISE(vp, offset, end, advice); 4896 uap->advice); 4769 kern_posix_fadvise(struct thread *td, int fd, off_t offset, off_t len, int advice) argument
|
/freebsd-current/sys/sys/ |
H A D | syscallsubr.h | 279 int advice);
|
/freebsd-current/contrib/llvm-project/compiler-rt/include/sanitizer/ |
H A D | netbsd_syscall_hooks.h | 2278 advice) \ 2281 (long long)(len), (long long)(advice)) 2283 advice) \ 2286 (long long)(len), (long long)(advice)) 4569 long long advice); 4572 long long advice);
|
/freebsd-current/sys/arm/arm/ |
H A D | pmap-v6.c | 5552 * Apply the given advice to the specified range of addresses within the 5553 * given pmap. Depending on the advice, clear the referenced and/or 5557 pmap_advise(pmap_t pmap, vm_offset_t sva, vm_offset_t eva, int advice) argument 5565 if (advice != MADV_DONTNEED && advice != MADV_FREE) 5624 if (advice == MADV_DONTNEED) {
|
/freebsd-current/sys/powerpc/aim/ |
H A D | mmu_radix.c | 2219 int advice) 2230 if (advice != MADV_DONTNEED && advice != MADV_FREE) 2306 if (advice == MADV_DONTNEED) { 2218 mmu_radix_advise(pmap_t pmap, vm_offset_t sva, vm_offset_t eva, int advice) argument
|