Searched refs:advice (Results 1 - 25 of 44) sorted by relevance

12

/freebsd-current/sys/ofed/drivers/infiniband/core/
H A Dib_uverbs_std_types_mr.c50 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 DWindowsMMap.h76 int madvise(void *addr, size_t length, int advice);
H A DWindowsMMap.c116 int madvise(void *addr, size_t length, int advice) argument
118 if (advice != MADV_DONTNEED)
/freebsd-current/contrib/ofed/libibverbs/
H A Dmemory.c590 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 Dsanitizer_solaris.cpp87 int internal_madvise(uptr addr, uptr length, int advice) { argument
88 return madvise((void *)addr, length, advice);
H A Dsanitizer_posix.h45 int internal_madvise(uptr addr, uptr length, int advice);
H A Dsanitizer_netbsd.cpp119 int internal_madvise(uptr addr, uptr length, int advice) { argument
121 return _REAL(madvise, (void *)addr, length, advice);
H A Dsanitizer_mac.cpp157 int internal_madvise(uptr addr, uptr length, int advice) { argument
158 return madvise((void *)addr, length, advice);
H A Dsanitizer_linux.cpp233 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 Dlinux_file.c1560 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 Dvm_object.c1275 * 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 Dpmap.h122 int advice);
H A Dvm_page.h604 void vm_page_advise(vm_page_t m, int advice);
H A Dvm_page.c4473 * 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 Dflags.c260 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 Dposixshm_test.c1481 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 Dpmap_base.c610 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 Dpmap.c5280 * 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 Dzpl_file.c925 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 Dvfs_vnops.c1077 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 Dvfs_syscalls.c4770 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 Dsyscallsubr.h279 int advice);
/freebsd-current/contrib/llvm-project/compiler-rt/include/sanitizer/
H A Dnetbsd_syscall_hooks.h2278 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 Dpmap-v6.c5552 * 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 Dmmu_radix.c2219 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

Completed in 587 milliseconds

12