Home
last modified time | relevance | path

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

123

/kernel/linux/linux-6.6/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()
59 /* no bad return value, but ignore advice */ in generic_fadvise()
78 switch (advice) { in generic_fadvise()
180 int vfs_fadvise(struct file *file, loff_t offset, loff_t len, int advice) in vfs_fadvise() argument
183 return file->f_op->fadvise(file, offset, len, advice); in vfs_fadvise()
185 return generic_fadvise(file, offset, len, advice); in vfs_fadvise()
191 int ksys_fadvise64_64(int fd, loff_t offset, loff_t len, int advice) in ksys_fadvise64_64() argument
199 ret = vfs_fadvise(f.file, offset, len, advice); in ksys_fadvise64_64()
205 SYSCALL_DEFINE4(fadvise64_64, int, fd, loff_t, offset, loff_t, len, int, advice) in SYSCALL_DEFINE4()
[all...]
/kernel/linux/linux-5.10/mm/
H A 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()
60 /* no bad return value, but ignore 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()
[all...]
/kernel/linux/linux-6.6/io_uring/
H A Dadvise.c21 u32 advice; member
28 u32 advice; member
41 ma->advice = READ_ONCE(sqe->fadvise_advice); in io_madvise_prep()
57 ret = do_madvise(current->mm, ma->addr, ma->len, ma->advice); in io_madvise()
67 switch (fa->advice) { in io_fadvise_force_async()
86 fa->advice = READ_ONCE(sqe->fadvise_advice); in io_fadvise_prep()
99 ret = vfs_fadvise(req->file, fa->offset, fa->len, fa->advice); in io_fadvise()
/kernel/linux/linux-5.10/arch/sh/kernel/
H A Dsys_sh32.c52 u32 len0, u32 len1, int advice) in sys_fadvise64_64_wrapper()
56 (u64)len1 << 32 | len0, advice); in sys_fadvise64_64_wrapper()
59 (u64)len0 << 32 | len1, advice); in sys_fadvise64_64_wrapper()
51 sys_fadvise64_64_wrapper(int fd, u32 offset0, u32 offset1, u32 len0, u32 len1, int advice) sys_fadvise64_64_wrapper() argument
/kernel/linux/linux-6.6/arch/sh/kernel/
H A Dsys_sh32.c52 u32 len0, u32 len1, int advice) in sys_fadvise64_64_wrapper()
56 (u64)len1 << 32 | len0, advice); in sys_fadvise64_64_wrapper()
59 (u64)len0 << 32 | len1, advice); in sys_fadvise64_64_wrapper()
51 sys_fadvise64_64_wrapper(int fd, u32 offset0, u32 offset1, u32 len0, u32 len1, int advice) sys_fadvise64_64_wrapper() argument
/kernel/linux/linux-5.10/arch/s390/kernel/
H A 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-6.6/arch/s390/kernel/
H A 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/arm/kernel/
H A 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/csky/kernel/
H A Dsyscall.c33 * for abiv1 the 64bits args should be even th, So we need mov the advice
38 int, advice, in SYSCALL_DEFINE4()
42 return ksys_fadvise64_64(fd, offset, len, advice); in SYSCALL_DEFINE4()
/kernel/linux/linux-6.6/arch/csky/kernel/
H A Dsyscall.c33 * for abiv1 the 64bits args should be even th, So we need mov the advice
38 int, advice, in SYSCALL_DEFINE4()
42 return ksys_fadvise64_64(fd, offset, len, advice); in SYSCALL_DEFINE4()
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-5.10/arch/c6x/include/asm/
H A Dsyscalls.h36 u32 len, int advice);
38 u32 len_lo, u32 len_hi, int advice);
/kernel/linux/linux-5.10/include/linux/
H A Dksm.h23 unsigned long end, int advice, unsigned long *vm_flags);
70 unsigned long end, int advice, unsigned long *vm_flags) in ksm_madvise()
69 ksm_madvise(struct vm_area_struct *vma, unsigned long start, unsigned long end, int advice, unsigned long *vm_flags) ksm_madvise() argument
/kernel/linux/linux-6.6/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,
/kernel/linux/linux-5.10/arch/nds32/kernel/
H A Dsys_nds32.c23 SYSCALL_DEFINE4(fadvise64_64_wrapper,int, fd, int, advice, loff_t, offset, in SYSCALL_DEFINE4()
26 return sys_fadvise64_64(fd, offset, len, advice); in SYSCALL_DEFINE4()
/kernel/linux/linux-5.10/arch/xtensa/kernel/
H A 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-6.6/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()
/kernel/linux/linux-5.10/arch/x86/kernel/
H A Dsys_ia32.c89 int, advice) in SYSCALL_DEFINE6()
94 advice); in SYSCALL_DEFINE6()
113 unsigned int, offset_hi, size_t, len, int, advice) in SYSCALL_DEFINE5()
116 len, advice); in SYSCALL_DEFINE5()
/kernel/linux/linux-5.10/arch/sparc/kernel/
H A Dsys_sparc32.c209 compat_size_t, len, int, advice) in COMPAT_SYSCALL_DEFINE5()
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()
220 advice); in COMPAT_SYSCALL_DEFINE6()
H A Dsystbls.h85 compat_size_t len, int advice);
89 int advice);
/kernel/linux/linux-6.6/arch/sparc/kernel/
H A Dsys_sparc32.c209 compat_size_t, len, int, advice) in COMPAT_SYSCALL_DEFINE5()
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()
220 advice); in COMPAT_SYSCALL_DEFINE6()
/kernel/linux/linux-6.6/arch/x86/kernel/
H A Dsys_ia32.c89 int, advice) in SYSCALL_DEFINE6()
94 advice); in SYSCALL_DEFINE6()
113 unsigned int, offset_hi, size_t, len, int, advice) in SYSCALL_DEFINE5()
116 len, advice); in SYSCALL_DEFINE5()
/kernel/linux/linux-5.10/drivers/infiniband/core/
H A Duverbs_std_types_mr.c51 enum ib_uverbs_advise_mr_advice advice; in UVERBS_METHOD_ADVISE_MR() local
62 ret = uverbs_get_const(&advice, attrs, UVERBS_ATTR_ADVISE_MR_ADVICE); in UVERBS_METHOD_ADVISE_MR()
78 return ib_dev->ops.advise_mr(pd, advice, flags, sg_list, num_sge, in UVERBS_METHOD_ADVISE_MR()
/kernel/linux/linux-5.10/arch/arm64/kernel/
H A Dsys32.c106 COMPAT_SYSCALL_DEFINE6(aarch32_fadvise64_64, int, fd, int, advice, in COMPAT_SYSCALL_DEFINE6()
109 return ksys_fadvise64_64(fd, arg_u64(offset), arg_u64(len), advice); in COMPAT_SYSCALL_DEFINE6()
/kernel/linux/linux-5.10/arch/powerpc/kernel/
H A 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()

Completed in 8 milliseconds

123