Home
last modified time | relevance | path

Searched refs:readahead (Results 1 - 21 of 21) sorted by relevance

/third_party/ltp/testcases/kernel/syscalls/readahead/
H A Dreadahead01.c9 * Verify that readahead() syscall fails with:
12 * - EINVAL when fd does not refer to a file type to which readahead()
37 TST_EXP_FAIL(readahead(-1, 0, getpagesize()), EBADF); in test_bad_fd()
45 TST_EXP_FAIL(readahead(fd, 0, getpagesize()), EBADF); in test_bad_fd()
56 TST_EXP_FAIL(readahead(fd[0], 0, getpagesize()), EINVAL); in test_invalid_fd()
62 TST_EXP_FAIL(readahead(fd[0], 0, getpagesize()), EINVAL); in test_invalid_fd()
74 /* check if readahead syscall is supported */ in setup()
H A Dreadahead02.c7 * functional test for readahead() syscall
9 * This test is measuring effects of readahead syscall.
10 * It mmaps/reads a test file with and without prior call to readahead.
56 return readahead(fd, offset, len); in libc_readahead()
61 /* Should have the same effect as readahead() syscall */ in fadvise_willneed()
71 /* Use either readahead() syscall or POSIX_FADV_WILLNEED */
72 int (*readahead)(int fd, off_t offset, size_t len); member
74 { "readahead on file", 0, 0, libc_readahead },
75 { "readahead on overlayfs file", 1, 0, libc_readahead },
146 * @do_readahead: call readahead prio
[all...]
/third_party/python/Modules/_io/
H A Diobase.c553 PyObject *readahead = PyObject_CallOneArg(peek, _PyLong_GetOne()); in _io__IOBase_readline_impl() local
554 if (readahead == NULL) { in _io__IOBase_readline_impl()
562 if (!PyBytes_Check(readahead)) { in _io__IOBase_readline_impl()
565 "not '%.200s'", Py_TYPE(readahead)->tp_name); in _io__IOBase_readline_impl()
566 Py_DECREF(readahead); in _io__IOBase_readline_impl()
569 if (PyBytes_GET_SIZE(readahead) > 0) { in _io__IOBase_readline_impl()
571 const char *buf = PyBytes_AS_STRING(readahead); in _io__IOBase_readline_impl()
574 if (n >= PyBytes_GET_SIZE(readahead) || n >= limit) in _io__IOBase_readline_impl()
582 if (n >= PyBytes_GET_SIZE(readahead)) in _io__IOBase_readline_impl()
590 Py_DECREF(readahead); in _io__IOBase_readline_impl()
[all...]
/third_party/musl/src/linux/
H A Dreadahead.c5 ssize_t readahead(int fd, off_t pos, size_t len) in readahead() function
/third_party/musl/libc-test/src/functionalext/supplement/linux/
H A Dreadahead.c22 * @tc.desc : Test file readahead for readahead method
27 int result = readahead(-1, 0, 123); in readahead_0100()
30 t_error("%s readahead error get result is %d are not want -1\n", __func__, result); in readahead_0100()
/third_party/rust/crates/nix/src/sys/
H A Dsendfile.rs127 /// `readahead` parameter, disabling caching heuristics.
153 /// `readahead` specifies the minimum number of pages to cache in memory ahead of the page
167 readahead: u16 in sendfile()
172 let ra32 = u32::from(readahead); in sendfile()
/third_party/ltp/testcases/kernel/mem/hugetlb/hugemmap/
H A Dhugemmap30.c10 * readahead() on some kernels can cause the reservation counter to get
38 readahead(fd, 0, hpage_size); in run_test()
/third_party/ltp/testcases/kernel/syscalls/
H A DMakefile28 readahead remap_file_pages rt_sigsuspend rt_sigtimedwait \
/third_party/musl/porting/linux/user/include/
H A Dfcntl.h191 ssize_t readahead(int, off_t, size_t);
/third_party/musl/porting/liteos_m_iccarm/kernel/include/
H A Dfcntl.h190 ssize_t readahead(int, off_t, size_t);
/third_party/musl/porting/liteos_m/kernel/include/
H A Dfcntl.h190 ssize_t readahead(int, off_t, size_t);
/third_party/musl/porting/uniproton/kernel/include/
H A Dfcntl.h190 ssize_t readahead(int, off_t, size_t);
/third_party/musl/porting/liteos_a/kernel/include/
H A Dfcntl.h184 ssize_t readahead(int, off_t, size_t);
/third_party/musl/porting/liteos_m/user/include/
H A Dfcntl.h190 ssize_t readahead(int, off_t, size_t);
/third_party/musl/include/
H A Dfcntl.h193 ssize_t readahead(int, off_t, size_t);
/third_party/python/Lib/
H A D_pyio.py553 readahead = self.peek(1)
554 if not readahead:
556 n = (readahead.find(b"\n") + 1) or len(readahead)
1484 # Undo readahead
/third_party/ffmpeg/libavfilter/
H A Daf_hdcd.c843 unsigned char readahead; member
1019 state->readahead = 32; in hdcd_reset()
1053 result = FFMIN(states[i].readahead, result); in hdcd_integrate()
1063 states[i].readahead -= result; in hdcd_integrate()
1065 if (states[i].readahead == 0) { in hdcd_integrate()
1113 states[i].readahead = (wbits & 3) * 8; in hdcd_integrate()
1118 states[i].readahead = readaheadtab[wbits & 0xff]; in hdcd_integrate()
1120 states[i].readahead = 31; /* ffwd over digisilence */ in hdcd_integrate()
/third_party/rust/crates/libc/src/unix/bsd/netbsdlike/openbsd/
H A Dmod.rs139 pub readahead: ::c_int,
/third_party/rust/crates/libc/src/fuchsia/
H A Dmod.rs3984 pub fn readahead(fd: ::c_int, offset: ::off64_t, count: ::size_t) -> ::ssize_t; in readahead() functions
/third_party/rust/crates/libc/src/unix/linux_like/linux/
H A Dmod.rs3956 pub fn readahead(fd: ::c_int, offset: ::off64_t, count: ::size_t) -> ::ssize_t; in readahead() functions
/third_party/toybox/generated/
H A Dflags.h2350 // readahead
5461 #define TT this.readahead

Completed in 52 milliseconds