Home
last modified time | relevance | path

Searched refs:lseek (Results 1 – 50 of 50) sorted by relevance

/linux-4.4.14/arch/sparc/boot/
Dpiggyback.c152 if (lseek(kernelfd, 0, SEEK_SET) < 0) in get_hdrs_offset()
168 if (lseek(kernelfd, offset, SEEK_SET) < 0) in get_hdrs_offset()
225 if (lseek(image, offset, 0) < 0) in main()
246 if (lseek(image, 4, 0) < 0) in main()
260 if (lseek(image, AOUT_TEXT_OFFSET - start + align(end + 32), 0) < 0) in main()
/linux-4.4.14/tools/power/cpupower/utils/helpers/
Dmsr.c35 if (lseek(fd, idx, SEEK_CUR) == -1) in read_msr()
64 if (lseek(fd, idx, SEEK_CUR) == -1) in write_msr()
/linux-4.4.14/arch/mips/include/asm/
Dpmon.h19 off_t (*lseek) (int, off_t, int); member
37 #define pmon_lseek(fd, off, whence) debug_vectors->lseek(fd, off, whence)
/linux-4.4.14/tools/power/acpi/tools/ec/
Dec_access.c152 lseek(fd, 0, SEEK_SET); in dump_ec()
181 error = lseek(fd, byte_offset, SEEK_SET); in read_ec_val()
197 error = lseek(fd, byte_offset, SEEK_SET); in write_ec_val()
/linux-4.4.14/tools/perf/util/
Dheader.c747 off_t offset = lseek(fd, 0, SEEK_CUR); in write_pmu_mappings()
772 lseek(fd, offset, SEEK_SET); in write_pmu_mappings()
1357 if (lseek(input, orig_offset, SEEK_SET) == (off_t)-1) in perf_header__read_build_ids()
1964 if (lseek(fd, section->offset, SEEK_SET) == (off_t)-1) { in perf_file_section__fprintf_info()
2009 (*p)->offset = lseek(fd, 0, SEEK_CUR); in do_write_feat()
2016 lseek(fd, (*p)->offset, SEEK_SET); in do_write_feat()
2020 (*p)->size = lseek(fd, 0, SEEK_CUR) - (*p)->offset; in do_write_feat()
2047 lseek(fd, sec_start + sec_size, SEEK_SET); in perf_header__adds_write()
2054 lseek(fd, sec_start, SEEK_SET); in perf_header__adds_write()
2096 lseek(fd, sizeof(f_header), SEEK_SET); in perf_session__write_header()
[all …]
Dtrace-event-info.c64 off_t hdr_pos = lseek(output_fd, 0, SEEK_CUR); in record_file()
549 tdata->size = lseek(output_fd, 0, SEEK_CUR); in tracing_data_get()
Dtrace-event-read.c180 lseek(input_fd, size, SEEK_CUR); in read_proc_kallsyms()
Dsymbol-minimal.c300 if (lseek(fd, 0, SEEK_SET)) in fd__is_64_bit()
Dsession.c1165 lseek(fd, file_offset, SEEK_SET); in perf_session__process_user_event()
1177 lseek(fd, file_offset + event->header.size, SEEK_SET); in perf_session__process_user_event()
1235 if (lseek(fd, file_offset, SEEK_SET) == (off_t)-1 || in perf_session__peek_event()
Dsymbol-elf.c1204 if (lseek(to, to_offs, SEEK_SET) != to_offs) in copy_bytes()
1207 if (lseek(from, from_offs, SEEK_SET) != from_offs) in copy_bytes()
Dintel-bts.c658 data_offset = lseek(fd, 0, SEEK_CUR); in intel_bts_process_auxtrace_event()
Dintel-pt.c1770 data_offset = lseek(fd, 0, SEEK_CUR); in intel_pt_process_auxtrace_event()
/linux-4.4.14/arch/powerpc/boot/
Dmktree.c109 if (lseek(in_fd, (64 * 1024), SEEK_SET) < 0) { in main()
140 if (lseek(out_fd, 0, SEEK_SET) < 0) { in main()
Dhack-coff.c73 if (lseek(fd, (long) sizeof(struct external_filehdr), 0) == -1 in main()
Daddnote.c226 lseek(fd, (long) 0, SEEK_SET); in main()
/linux-4.4.14/arch/cris/boot/tools/
Dbuild.c238 lseek(id, GCC_HEADER, SEEK_SET); in main()
276 if (lseek(1, 497, 0) == 497) { in main()
280 if (lseek(1,500,0) == 500) { in main()
/linux-4.4.14/tools/testing/selftests/vm/
Dcompaction_test.c108 lseek(fd, 0, SEEK_SET); in check_compaction()
117 lseek(fd, 0, SEEK_SET); in check_compaction()
/linux-4.4.14/arch/mn10300/boot/tools/
Dbuild.c177 if (lseek(1, 497, SEEK_SET) != 497) in main()
182 if (lseek(1, 500, SEEK_SET) != 500) in main()
/linux-4.4.14/drivers/pci/hotplug/
Dcpqphp_sysfs.c168 static loff_t lseek(struct file *file, loff_t off, int whence) in lseek() function
193 .llseek = lseek,
/linux-4.4.14/arch/alpha/boot/tools/
Dobjstrip.c169 lseek(fd, elf->e_phoff, SEEK_SET); in main()
227 if (lseek(fd, offset, SEEK_SET) != offset) { in main()
Dmkbb.c141 lseek(dev, 0L, SEEK_SET); in main()
/linux-4.4.14/tools/power/cpupower/debug/i386/
Dpowernow-k8-decode.c43 lseek(fd, MSR_FIDVID_STATUS, SEEK_CUR); in get_fidvid()
Dcentrino-decode.c48 if (lseek(fd, msr, SEEK_CUR) == -1) in rdmsr()
/linux-4.4.14/tools/testing/selftests/powerpc/dscr/
Ddscr.h91 lseek(fd, 0, SEEK_SET); in get_default_dscr()
/linux-4.4.14/Documentation/fmc/
Dfmc-chardev.txt15 Currently the driver only supports read and write: you can lseek to the
46 is not specific to FMC at all, it just uses lseek, read and write.
/linux-4.4.14/arch/um/os-Linux/
Duser_syms.c66 EXPORT_SYMBOL_PROTO(lseek);
/linux-4.4.14/tools/testing/selftests/powerpc/mm/
Dsubpage_prot.c190 filesize = lseek(fd, 0, SEEK_END); in test_file()
/linux-4.4.14/arch/x86/entry/vdso/
Dvdso2c.c193 tmp_len = lseek(fd, 0, SEEK_END); in map_input()
/linux-4.4.14/tools/perf/
Dbuiltin-inject.c135 offset = lseek(inject->output.fd, 0, SEEK_CUR); in perf_event__repipe_auxtrace()
624 lseek(fd, output_data_offset, SEEK_SET); in __cmd_inject()
Dbuiltin-record.c161 file_offset = lseek(fd, 0, SEEK_CUR); in record__process_auxtrace()
753 file->size = lseek(perf_data_file__fd(file), 0, SEEK_CUR); in __cmd_record()
/linux-4.4.14/arch/mips/boot/
Delf2ecoff.c72 if (lseek(in, offset, SEEK_SET) < 0) { in copy()
136 if ((off = lseek(file, offset, SEEK_SET)) < 0) { in saveRead()
/linux-4.4.14/tools/testing/selftests/exec/
Dexecveat.c246 lseek(fd, 10, SEEK_SET); in run_tests()
/linux-4.4.14/arch/parisc/kernel/
Dsyscall_table.S79 ENTRY_COMP(lseek)
/linux-4.4.14/Documentation/zh_CN/
Dgpio.txt596 轮询操作(poll(2))返回之后,既可以通过 lseek(2)操作读取
/linux-4.4.14/arch/powerpc/include/asm/
Dsystbl.h25 COMPAT_SYS_SPU(lseek)
/linux-4.4.14/Documentation/mic/mpssd/
Dmpssd.c997 mic->mic_virtblk.backend_size = lseek(mic->mic_virtblk.backend, 0, in set_backend_size()
1461 ret = lseek(fd, 0, SEEK_SET); in block_till_state_change()
1567 len = lseek(fd, 0, SEEK_END); in set_log_buf_info()
/linux-4.4.14/Documentation/gpio/
Dsysfs.txt81 poll(2) returns, either lseek(2) to the beginning of the sysfs
Dgpio-legacy.txt701 poll(2) returns, either lseek(2) to the beginning of the sysfs
/linux-4.4.14/fs/
Dread_write.c276 SYSCALL_DEFINE3(lseek, unsigned int, fd, off_t, offset, unsigned int, whence) in SYSCALL_DEFINE3() argument
295 COMPAT_SYSCALL_DEFINE3(lseek, unsigned int, fd, compat_off_t, offset, unsigned int, whence) in COMPAT_SYSCALL_DEFINE3() argument
/linux-4.4.14/scripts/mod/
Dsumversion.c467 if (lseek(fd, offset, SEEK_SET) == (off_t)-1) { in write_version()
/linux-4.4.14/arch/x86/entry/syscalls/
Dsyscall_64.tbl17 8 common lseek sys_lseek
Dsyscall_32.tbl28 19 i386 lseek sys_lseek compat_sys_lseek
/linux-4.4.14/Documentation/DocBook/
Dfilesystems.xml.db138 API-seq-lseek
/linux-4.4.14/tools/lguest/
Dlguest.c452 if (lseek(elf_fd, ehdr->e_phoff, SEEK_SET) < 0) in map_elf()
498 lseek(fd, 0, SEEK_SET); in load_bzimage()
506 lseek(fd, (boot.hdr.setup_sects+1) * 512, SEEK_SET); in load_bzimage()
/linux-4.4.14/Documentation/usb/
Dusbmon.txt325 be polled with select(2) and poll(2). But lseek(2) does not work.
/linux-4.4.14/Documentation/filesystems/
Dhpfs.txt273 Directory lseek now checks for proper parameters
Dporting87 ->rmdir(), ->link(), ->lseek(), ->symlink(), ->rename()
Dspufs.txt58 read(2), pread(2), write(2), pwrite(2), lseek(2)
Dproc.txt1718 represents the current offset of the opened file in decimal form [see lseek(2)
/linux-4.4.14/Documentation/cdrom/
Dcdrom-standard.tex167 &NULL, & lseek \cr