Home
last modified time | relevance | path

Searched refs:fpos (Results 1 – 9 of 9) sorted by relevance

/fs/proc/
Dkcore.c314 read_kcore(struct file *file, char __user *buffer, size_t buflen, loff_t *fpos) in read_kcore() argument
333 if (buflen && *fpos < sizeof(struct elfhdr)) { in read_kcore()
355 tsz = min_t(size_t, buflen, sizeof(struct elfhdr) - *fpos); in read_kcore()
356 if (copy_to_user(buffer, (char *)&ehdr + *fpos, tsz)) { in read_kcore()
363 *fpos += tsz; in read_kcore()
367 if (buflen && *fpos < phdrs_offset + phdrs_len) { in read_kcore()
400 tsz = min_t(size_t, buflen, phdrs_offset + phdrs_len - *fpos); in read_kcore()
401 if (copy_to_user(buffer, (char *)phdrs + *fpos - phdrs_offset, in read_kcore()
411 *fpos += tsz; in read_kcore()
415 if (buflen && *fpos < notes_offset + notes_len) { in read_kcore()
[all …]
Dvmcore.c295 static ssize_t __read_vmcore(char *buffer, size_t buflen, loff_t *fpos, in __read_vmcore() argument
303 if (buflen == 0 || *fpos >= vmcore_size) in __read_vmcore()
307 if (buflen > vmcore_size - *fpos) in __read_vmcore()
308 buflen = vmcore_size - *fpos; in __read_vmcore()
311 if (*fpos < elfcorebuf_sz) { in __read_vmcore()
312 tsz = min(elfcorebuf_sz - (size_t)*fpos, buflen); in __read_vmcore()
313 if (copy_to(buffer, elfcorebuf + *fpos, tsz, userbuf)) in __read_vmcore()
316 *fpos += tsz; in __read_vmcore()
326 if (*fpos < elfcorebuf_sz + elfnotes_sz) { in __read_vmcore()
340 if (*fpos < elfcorebuf_sz + vmcoredd_orig_sz) { in __read_vmcore()
[all …]
/fs/
Dbinfmt_flat.c192 static int decompress_exec(struct linux_binprm *bprm, loff_t fpos, char *dst, in decompress_exec() argument
199 pr_debug("decompress_exec(offset=%llx,buf=%p,len=%lx)\n", fpos, dst, len); in decompress_exec()
213 ret = kernel_read(bprm->file, buf, LBUFSIZE, &fpos); in decompress_exec()
283 ret = kernel_read(bprm->file, buf, LBUFSIZE, &fpos); in decompress_exec()
435 loff_t fpos; in load_flat_file() local
593 fpos = ntohl(hdr->data_start); in load_flat_file()
596 result = decompress_exec(bprm, fpos, (char *)datapos, in load_flat_file()
601 result = read_code(bprm->file, datapos, fpos, in load_flat_file()
/fs/adfs/
Ddir_fplus.c117 adfs_fplus_setpos(struct adfs_dir *dir, unsigned int fpos) in adfs_fplus_setpos() argument
123 if (fpos <= le32_to_cpu(h->bigdirentries)) { in adfs_fplus_setpos()
124 dir->pos = fpos; in adfs_fplus_setpos()
Ddir_f.c346 adfs_f_setpos(struct adfs_dir *dir, unsigned int fpos) in adfs_f_setpos() argument
348 if (fpos >= ADFS_NUM_DIR_ENTRIES) in adfs_f_setpos()
351 dir->pos = 5 + fpos * 26; in adfs_f_setpos()
Dadfs.h125 int (*setpos)(struct adfs_dir *dir, unsigned int fpos);
/fs/xfs/
Dxfs_reflink.c1405 xfs_off_t fpos; in xfs_reflink_dirty_extents() local
1440 fpos = XFS_FSB_TO_B(mp, map[1].br_startoff + in xfs_reflink_dirty_extents()
1443 if (fpos + flen > isize) in xfs_reflink_dirty_extents()
1444 flen = isize - fpos; in xfs_reflink_dirty_extents()
1445 error = iomap_file_dirty(VFS_I(ip), fpos, flen, in xfs_reflink_dirty_extents()
/fs/afs/
Ddir.c28 loff_t fpos, u64 ino, unsigned dtype);
30 loff_t fpos, u64 ino, unsigned dtype);
530 int nlen, loff_t fpos, u64 ino, unsigned dtype) in afs_lookup_one_filldir() argument
599 int nlen, loff_t fpos, u64 ino, unsigned dtype) in afs_lookup_filldir() argument
/fs/ceph/
Ddir.c67 loff_t fpos = ((loff_t)high << 28) | (loff_t)off; in ceph_make_fpos() local
69 fpos |= HASH_ORDER; in ceph_make_fpos()
70 return fpos; in ceph_make_fpos()