Home
last modified time | relevance | path

Searched refs:advice (Results 1 – 25 of 55) sorted by relevance

123

/linux/mm/
H A Dfadvise.c31 int generic_fadvise(struct file *file, loff_t offset, loff_t len, int advice) in generic_fadvise() argument
52 switch (advice) { in generic_fadvise()
78 switch (advice) { in generic_fadvise()
179 int vfs_fadvise(struct file *file, loff_t offset, loff_t len, int advice) in vfs_fadvise() argument
182 return file->f_op->fadvise(file, offset, len, advice); in vfs_fadvise()
184 return generic_fadvise(file, offset, len, advice); in vfs_fadvise()
190 int ksys_fadvise64_64(int fd, loff_t offset, loff_t len, int advice) in ksys_fadvise64_64() argument
197 return vfs_fadvise(fd_file(f), offset, len, advice); in ksys_fadvise64_64()
200 SYSCALL_DEFINE4(fadvise64_64, int, fd, loff_t, offset, loff_t, len, int, advice) in SYSCALL_DEFINE4() argument
202 return ksys_fadvise64_64(fd, offset, len, advice); in SYSCALL_DEFINE4()
[all …]
/linux/io_uring/
H A Dadvise.c21 u32 advice; member
28 u32 advice; member
43 ma->advice = READ_ONCE(sqe->fadvise_advice); in io_madvise_prep()
59 ret = do_madvise(current->mm, ma->addr, ma->len, ma->advice); in io_madvise()
69 switch (fa->advice) { in io_fadvise_force_async()
90 fa->advice = READ_ONCE(sqe->fadvise_advice); in io_fadvise_prep()
103 ret = vfs_fadvise(req->file, fa->offset, fa->len, fa->advice); in io_fadvise()
/linux/drivers/infiniband/sw/rxe/
H A Drxe_odp.c457 enum ib_uverbs_advise_mr_advice advice, in rxe_ib_prefetch_sg_list() argument
478 if (advice == IB_UVERBS_ADVISE_MR_ADVICE_PREFETCH_WRITE && in rxe_ib_prefetch_sg_list()
503 enum ib_uverbs_advise_mr_advice advice, in rxe_ib_advise_mr_prefetch() argument
513 if (advice == IB_UVERBS_ADVISE_MR_ADVICE_PREFETCH) in rxe_ib_advise_mr_prefetch()
516 if (advice == IB_UVERBS_ADVISE_MR_ADVICE_PREFETCH_NO_FAULT) in rxe_ib_advise_mr_prefetch()
521 return rxe_ib_prefetch_sg_list(ibpd, advice, pf_flags, sg_list, in rxe_ib_advise_mr_prefetch()
564 enum ib_uverbs_advise_mr_advice advice, in rxe_ib_advise_mr() argument
570 if (advice != IB_UVERBS_ADVISE_MR_ADVICE_PREFETCH && in rxe_ib_advise_mr()
571 advice != IB_UVERBS_ADVISE_MR_ADVICE_PREFETCH_WRITE && in rxe_ib_advise_mr()
572 advice != IB_UVERBS_ADVISE_MR_ADVICE_PREFETCH_NO_FAULT) in rxe_ib_advise_mr()
[all …]
/linux/arch/arm/kernel/
H A Dsys_arm.c33 asmlinkage long sys_arm_fadvise64_64(int fd, int advice, in sys_arm_fadvise64_64() argument
36 return ksys_fadvise64_64(fd, offset, len, advice); in sys_arm_fadvise64_64()
/linux/arch/hexagon/kernel/
H A Dsyscalltab.c19 SYSCALL_DEFINE6(hexagon_fadvise64_64, int, fd, int, advice, in SYSCALL_DEFINE6() argument
22 return ksys_fadvise64_64(fd, SC_VAL64(loff_t, offset), SC_VAL64(loff_t, len), advice); in SYSCALL_DEFINE6()
/linux/arch/x86/kernel/
H A Dsys_ia32.c89 int, advice) in SYSCALL_DEFINE6() argument
94 advice); in SYSCALL_DEFINE6()
113 unsigned int, offset_hi, size_t, len, int, advice) in SYSCALL_DEFINE5() argument
116 len, advice); in SYSCALL_DEFINE5()
/linux/arch/powerpc/include/asm/
H A Dsyscalls.h106 size_t len, int advice);
132 size_t len, int advice);
141 long sys_ppc_fadvise64_64(int fd, int advice,
/linux/arch/xtensa/kernel/
H A Dsyscall.c50 asmlinkage long xtensa_fadvise64_64(int fd, int advice, in xtensa_fadvise64_64() argument
53 return ksys_fadvise64_64(fd, offset, len, advice); in xtensa_fadvise64_64()
/linux/arch/sparc/kernel/
H A Dsys_sparc32.c209 compat_size_t, len, int, advice) in COMPAT_SYSCALL_DEFINE5() argument
211 return ksys_fadvise64_64(fd, ((u64)offhi << 32) | offlo, len, advice); in COMPAT_SYSCALL_DEFINE5()
215 u32, lenhi, u32, lenlo, int, advice) in COMPAT_SYSCALL_DEFINE6() argument
220 advice); in COMPAT_SYSCALL_DEFINE6()
H A Dsystbls.h85 compat_size_t len, int advice);
89 int advice);
/linux/arch/powerpc/kernel/
H A Dsyscalls.c104 int, fd, int, advice, u32, offset_high, u32, offset_low, in SYSCALL_DEFINE6() argument
108 merge_64(len_high, len_low), advice); in SYSCALL_DEFINE6()
H A Dsys_ppc32.c109 size_t, len, int, advice) in PPC32_SYSCALL_DEFINE6() argument
112 advice); in PPC32_SYSCALL_DEFINE6()
/linux/include/linux/
H A Dksm.h19 unsigned long end, int advice, vm_flags_t *vm_flags);
142 unsigned long end, int advice, vm_flags_t *vm_flags) in ksm_madvise() argument
/linux/arch/arm64/kernel/
H A Dsys32.c101 COMPAT_SYSCALL_DEFINE6(aarch32_fadvise64_64, int, fd, int, advice, in COMPAT_SYSCALL_DEFINE6() argument
104 return ksys_fadvise64_64(fd, arg_u64(offset), arg_u64(len), advice); in COMPAT_SYSCALL_DEFINE6()
/linux/arch/csky/include/asm/
H A Dsyscalls.h12 long sys_csky_fadvise64_64(int fd, int advice, loff_t offset, loff_t len);
/linux/arch/sh/include/asm/
H A Dsyscalls_32.h19 u32 len0, u32 len1, int advice);
/linux/drivers/md/dm-vdo/
H A Ddedupe.c1606 struct zoned_pbn *advice = &data_vio->duplicate; in decode_uds_advice() local
1619 advice->state = encoding->data[offset++]; in decode_uds_advice()
1620 advice->pbn = get_unaligned_le64(&encoding->data[offset]); in decode_uds_advice()
1625 if ((advice->state == VDO_MAPPING_STATE_UNMAPPED) || (advice->pbn == VDO_ZERO_BLOCK)) { in decode_uds_advice()
1627 (unsigned long long) advice->pbn, advice->state, in decode_uds_advice()
1633 result = vdo_get_physical_zone(vdo, advice->pbn, &advice->zone); in decode_uds_advice()
1634 if ((result != VDO_SUCCESS) || (advice->zone == NULL)) { in decode_uds_advice()
1636 (unsigned long long) advice->pbn, in decode_uds_advice()
/linux/drivers/infiniband/hw/mlx5/
H A Dodp.c1968 get_prefetchable_mr(struct ib_pd *pd, enum ib_uverbs_advise_mr_advice advice, in get_prefetchable_mr() argument
1994 if (advice == IB_UVERBS_ADVISE_MR_ADVICE_PREFETCH_WRITE && in get_prefetchable_mr()
2029 enum ib_uverbs_advise_mr_advice advice, in init_prefetch_work() argument
2041 mr = get_prefetchable_mr(pd, advice, sg_list[i].lkey); in init_prefetch_work()
2055 enum ib_uverbs_advise_mr_advice advice, in mlx5_ib_prefetch_sg_list() argument
2066 mr = get_prefetchable_mr(pd, advice, sg_list[i].lkey); in mlx5_ib_prefetch_sg_list()
2083 enum ib_uverbs_advise_mr_advice advice, in mlx5_ib_advise_mr_prefetch() argument
2090 if (advice == IB_UVERBS_ADVISE_MR_ADVICE_PREFETCH) in mlx5_ib_advise_mr_prefetch()
2093 if (advice == IB_UVERBS_ADVISE_MR_ADVICE_PREFETCH_NO_FAULT) in mlx5_ib_advise_mr_prefetch()
2097 return mlx5_ib_prefetch_sg_list(pd, advice, pf_flags, sg_list, in mlx5_ib_advise_mr_prefetch()
[all …]
/linux/tools/testing/selftests/mm/
H A Dprocess_madv.c49 size_t vlen, int advice, unsigned int flags) in sys_process_madvise() argument
51 return syscall(__NR_process_madvise, pidfd, iovec, vlen, advice, flags); in sys_process_madvise()
/linux/arch/arm/include/asm/
H A Dsyscalls.h11 asmlinkage long sys_arm_fadvise64_64(int fd, int advice,
/linux/fs/netfs/
H A Dfscache_cookie.c327 u8 advice, in fscache_alloc_cookie() argument
341 cookie->advice = advice; in fscache_alloc_cookie()
452 u8 advice, in __fscache_acquire_cookie() argument
470 cookie = fscache_alloc_cookie(volume, advice, in __fscache_acquire_cookie()
/linux/arch/parisc/kernel/
H A Dsys_parisc.c271 unsigned int high_len, unsigned int low_len, int advice) in parisc_fadvise64_64() argument
274 (loff_t)high_len << 32 | low_len, advice); in parisc_fadvise64_64()
/linux/Documentation/mm/
H A Dindex.rst6 of Linux. If you are looking for advice on simply allocating memory,
/linux/Documentation/process/debugging/
H A Ddriver_development_debugging_guide.rst4 Debugging advice for driver development
14 For general debugging advice, see the :doc:`general advice document
/linux/Documentation/admin-guide/
H A Dreporting-regressions.rst151 should offer advice and reasonably help where they can, to make this process
164 Who can I ask for advice when it comes to regressions?
233 tracker for advice as outlined above.
241 doubt, ask for advice.
262 for advice as outlined above.
272 advice if in doubt.
353 the matter to the kernel's provider and ask for advice.

123