Home
last modified time | relevance | path

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

123

/linux-6.6.21/mm/
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()
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() argument
207 return ksys_fadvise64_64(fd, offset, len, advice); in SYSCALL_DEFINE4()
[all …]
/linux-6.6.21/io_uring/
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()
/linux-6.6.21/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()
/linux-6.6.21/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()
/linux-6.6.21/arch/arm/kernel/
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-6.6.21/arch/csky/kernel/
Dsyscall.c38 int, advice, in SYSCALL_DEFINE4() argument
42 return ksys_fadvise64_64(fd, offset, len, advice); in SYSCALL_DEFINE4()
/linux-6.6.21/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()
/linux-6.6.21/arch/powerpc/include/asm/
Dsyscalls.h106 size_t len, int advice);
132 size_t len, int advice);
141 long sys_ppc_fadvise64_64(int fd, int advice,
/linux-6.6.21/arch/xtensa/kernel/
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-6.6.21/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);
/linux-6.6.21/include/linux/
Dksm.h20 unsigned long end, int advice, unsigned long *vm_flags);
127 unsigned long end, int advice, unsigned long *vm_flags) in ksm_madvise() argument
Dfscache.h136 u8 advice; /* FSCACHE_ADV_* */ member
244 u8 advice, in fscache_acquire_cookie() argument
253 return __fscache_acquire_cookie(volume, advice, in fscache_acquire_cookie()
Dhuge_mm.h180 int advice);
316 unsigned long *vm_flags, int advice) in hugepage_madvise() argument
/linux-6.6.21/arch/powerpc/kernel/
Dsys_ppc32.c109 size_t, len, int, advice) in PPC32_SYSCALL_DEFINE6() argument
112 advice); in PPC32_SYSCALL_DEFINE6()
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()
/linux-6.6.21/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()
/linux-6.6.21/arch/csky/include/asm/
Dsyscalls.h12 long sys_csky_fadvise64_64(int fd, int advice, loff_t offset, loff_t len);
/linux-6.6.21/drivers/infiniband/core/
Duverbs_std_types_mr.c52 enum ib_uverbs_advise_mr_advice advice; in UVERBS_HANDLER() local
63 ret = uverbs_get_const(&advice, attrs, UVERBS_ATTR_ADVISE_MR_ADVICE); in UVERBS_HANDLER()
79 return ib_dev->ops.advise_mr(pd, advice, flags, sg_list, num_sge, in UVERBS_HANDLER()
/linux-6.6.21/drivers/infiniband/hw/mlx5/
Dodp.c1664 get_prefetchable_mr(struct ib_pd *pd, enum ib_uverbs_advise_mr_advice advice, in get_prefetchable_mr() argument
1690 if (advice == IB_UVERBS_ADVISE_MR_ADVICE_PREFETCH_WRITE && in get_prefetchable_mr()
1725 enum ib_uverbs_advise_mr_advice advice, in init_prefetch_work() argument
1737 mr = get_prefetchable_mr(pd, advice, sg_list[i].lkey); in init_prefetch_work()
1751 enum ib_uverbs_advise_mr_advice advice, in mlx5_ib_prefetch_sg_list() argument
1762 mr = get_prefetchable_mr(pd, advice, sg_list[i].lkey); in mlx5_ib_prefetch_sg_list()
1779 enum ib_uverbs_advise_mr_advice advice, in mlx5_ib_advise_mr_prefetch() argument
1786 if (advice == IB_UVERBS_ADVISE_MR_ADVICE_PREFETCH) in mlx5_ib_advise_mr_prefetch()
1789 if (advice == IB_UVERBS_ADVISE_MR_ADVICE_PREFETCH_NO_FAULT) in mlx5_ib_advise_mr_prefetch()
1793 return mlx5_ib_prefetch_sg_list(pd, advice, pf_flags, sg_list, in mlx5_ib_advise_mr_prefetch()
[all …]
/linux-6.6.21/arch/sh/include/asm/
Dsyscalls_32.h19 u32 len0, u32 len1, int advice);
/linux-6.6.21/arch/arm/include/asm/
Dsyscalls.h11 asmlinkage long sys_arm_fadvise64_64(int fd, int advice,
/linux-6.6.21/Documentation/mm/
Dindex.rst9 of Linux. If you are looking for advice on simply allocating memory,
/linux-6.6.21/arch/parisc/kernel/
Dsys_parisc.c270 unsigned int high_len, unsigned int low_len, int advice) in parisc_fadvise64_64() argument
273 (loff_t)high_len << 32 | low_len, advice); in parisc_fadvise64_64()
/linux-6.6.21/fs/fscache/
Dcookie.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()

123