Home
last modified time | relevance | path

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

123

/kernel/linux/linux-5.10/mm/
Dfadvise.c32 int generic_fadvise(struct file *file, loff_t offset, loff_t len, int advice) in generic_fadvise() argument
53 switch (advice) { in generic_fadvise()
79 switch (advice) { in generic_fadvise()
181 int vfs_fadvise(struct file *file, loff_t offset, loff_t len, int advice) in vfs_fadvise() argument
184 return file->f_op->fadvise(file, offset, len, advice); in vfs_fadvise()
186 return generic_fadvise(file, offset, len, advice); in vfs_fadvise()
192 int ksys_fadvise64_64(int fd, loff_t offset, loff_t len, int advice) in ksys_fadvise64_64() argument
200 ret = vfs_fadvise(f.file, offset, len, advice); in ksys_fadvise64_64()
206 SYSCALL_DEFINE4(fadvise64_64, int, fd, loff_t, offset, loff_t, len, int, advice) in SYSCALL_DEFINE4() argument
208 return ksys_fadvise64_64(fd, offset, len, advice); in SYSCALL_DEFINE4()
[all …]
/kernel/linux/linux-5.10/arch/sh/kernel/
Dsys_sh32.c52 u32 len0, u32 len1, int advice) in sys_fadvise64_64_wrapper() argument
56 (u64)len1 << 32 | len0, advice); in sys_fadvise64_64_wrapper()
59 (u64)len0 << 32 | len1, advice); in sys_fadvise64_64_wrapper()
/kernel/linux/linux-5.10/arch/arm/kernel/
Dsys_arm.c32 asmlinkage long sys_arm_fadvise64_64(int fd, int advice, in sys_arm_fadvise64_64() argument
35 return ksys_fadvise64_64(fd, offset, len, advice); in sys_arm_fadvise64_64()
/kernel/linux/linux-5.10/arch/s390/kernel/
Dcompat_linux.c261 int advice; member
270 if (a.advice == 4) in COMPAT_SYSCALL_DEFINE1()
271 a.advice = POSIX_FADV_DONTNEED; in COMPAT_SYSCALL_DEFINE1()
272 else if (a.advice == 5) in COMPAT_SYSCALL_DEFINE1()
273 a.advice = POSIX_FADV_NOREUSE; in COMPAT_SYSCALL_DEFINE1()
274 return ksys_fadvise64_64(a.fd, a.offset, a.len, a.advice); in COMPAT_SYSCALL_DEFINE1()
/kernel/linux/linux-5.10/arch/csky/kernel/
Dsyscall.c38 int, advice, in SYSCALL_DEFINE4() argument
42 return ksys_fadvise64_64(fd, offset, len, advice); in SYSCALL_DEFINE4()
/kernel/linux/linux-5.10/arch/c6x/include/asm/
Dsyscalls.h36 u32 len, int advice);
38 u32 len_lo, u32 len_hi, int advice);
/kernel/linux/linux-5.10/include/linux/
Dksm.h23 unsigned long end, int advice, unsigned long *vm_flags);
70 unsigned long end, int advice, unsigned long *vm_flags) in ksm_madvise() argument
Dhuge_mm.h227 int advice);
421 unsigned long *vm_flags, int advice) in hugepage_madvise() argument
/kernel/linux/linux-5.10/arch/nds32/kernel/
Dsys_nds32.c23 SYSCALL_DEFINE4(fadvise64_64_wrapper,int, fd, int, advice, loff_t, offset, in SYSCALL_DEFINE4() argument
26 return sys_fadvise64_64(fd, offset, len, advice); in SYSCALL_DEFINE4()
/kernel/linux/linux-5.10/arch/x86/kernel/
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()
/kernel/linux/linux-5.10/arch/xtensa/kernel/
Dsyscall.c54 asmlinkage long xtensa_fadvise64_64(int fd, int advice, in xtensa_fadvise64_64() argument
57 return ksys_fadvise64_64(fd, offset, len, advice); in xtensa_fadvise64_64()
/kernel/linux/linux-5.10/arch/sparc/kernel/
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()
Dsystbls.h85 compat_size_t len, int advice);
89 int advice);
/kernel/linux/linux-5.10/arch/powerpc/kernel/
Dsys_ppc32.c101 size_t len, int advice) in ppc32_fadvise64() argument
104 advice); in ppc32_fadvise64()
Dsyscalls.c114 long ppc_fadvise64_64(int fd, int advice, u32 offset_high, u32 offset_low, in ppc_fadvise64_64() argument
118 (u64)len_high << 32 | len_low, advice); in ppc_fadvise64_64()
/kernel/linux/linux-5.10/drivers/infiniband/core/
Duverbs_std_types_mr.c51 enum ib_uverbs_advise_mr_advice advice; in UVERBS_HANDLER() local
62 ret = uverbs_get_const(&advice, attrs, UVERBS_ATTR_ADVISE_MR_ADVICE); in UVERBS_HANDLER()
78 return ib_dev->ops.advise_mr(pd, advice, flags, sg_list, num_sge, in UVERBS_HANDLER()
/kernel/linux/linux-5.10/arch/arm64/kernel/
Dsys32.c106 COMPAT_SYSCALL_DEFINE6(aarch32_fadvise64_64, int, fd, int, advice, in COMPAT_SYSCALL_DEFINE6() argument
109 return ksys_fadvise64_64(fd, arg_u64(offset), arg_u64(len), advice); in COMPAT_SYSCALL_DEFINE6()
/kernel/linux/linux-5.10/arch/csky/include/asm/
Dsyscalls.h13 long sys_csky_fadvise64_64(int fd, int advice, loff_t offset, loff_t len);
/kernel/linux/linux-5.10/arch/nds32/include/asm/
Dsyscalls.h8 asmlinkage long sys_fadvise64_64_wrapper(int fd, int advice, loff_t offset, loff_t len);
/kernel/linux/linux-5.10/arch/sh/include/asm/
Dsyscalls_32.h19 u32 len0, u32 len1, int advice);
/kernel/linux/linux-5.10/drivers/infiniband/hw/mlx5/
Dodp.c1745 get_prefetchable_mr(struct ib_pd *pd, enum ib_uverbs_advise_mr_advice advice, in get_prefetchable_mr() argument
1767 if (advice == IB_UVERBS_ADVISE_MR_ADVICE_PREFETCH_WRITE && in get_prefetchable_mr()
1803 enum ib_uverbs_advise_mr_advice advice, in init_prefetch_work() argument
1816 get_prefetchable_mr(pd, advice, sg_list[i].lkey); in init_prefetch_work()
1830 enum ib_uverbs_advise_mr_advice advice, in mlx5_ib_prefetch_sg_list() argument
1844 mr = get_prefetchable_mr(pd, advice, sg_list[i].lkey); in mlx5_ib_prefetch_sg_list()
1863 enum ib_uverbs_advise_mr_advice advice, in mlx5_ib_advise_mr_prefetch() argument
1871 if (advice == IB_UVERBS_ADVISE_MR_ADVICE_PREFETCH) in mlx5_ib_advise_mr_prefetch()
1874 if (advice == IB_UVERBS_ADVISE_MR_ADVICE_PREFETCH_NO_FAULT) in mlx5_ib_advise_mr_prefetch()
1878 return mlx5_ib_prefetch_sg_list(pd, advice, pf_flags, sg_list, in mlx5_ib_advise_mr_prefetch()
[all …]
/kernel/linux/linux-5.10/Documentation/vm/
Dindex.rst6 subsystem. If you are looking for advice on simply allocating memory,
/kernel/linux/linux-5.10/arch/parisc/kernel/
Dsys_parisc.c342 unsigned int high_len, unsigned int low_len, int advice) in parisc_fadvise64_64() argument
345 (loff_t)high_len << 32 | low_len, advice); in parisc_fadvise64_64()
/kernel/linux/linux-5.10/arch/powerpc/include/asm/
Dasm-prototypes.h106 long ppc_fadvise64_64(int fd, int advice, u32 offset_high, u32 offset_low,
/kernel/linux/linux-5.10/Documentation/usb/
DCREDITS127 pointing out mortal bugs and giving advice.
167 - Nathan Myers <ncm@cantrip.org>, for his advice! (hope you

123