git: kern - Make lseek(2) generic

Matthew Dillon dillon at crater.dragonflybsd.org
Mon Oct 14 09:01:29 PDT 2024


commit cc8e70bd591c943565dd618d131dcee0027ded02
Author: Sergey Zigachev <s.zi at outlook.com>
Date:   Tue Oct 8 19:14:27 2024 +0500

    kern - Make lseek(2) generic
    
    * Extend fileops with fo_seek function allowing pluggable lseek(2)
      implementations. Part of preparation for linux DMA-BUF compat API.
    
    * Move current vnode lseek implementation into vnode and devfs fileops.
      Code is exactly the same in both, note about duplication added.
    
    * Set remaining fileops to badfo_seek.
    
    Mentored-By: dillon

Summary of changes:
 sys/kern/kern_descrip.c     |  9 ++++++-
 sys/kern/kern_event.c       |  3 ++-
 sys/kern/sys_mqueue.c       |  3 ++-
 sys/kern/sys_pipe.c         |  3 ++-
 sys/kern/sys_socket.c       |  3 ++-
 sys/kern/vfs_syscalls.c     | 52 +-----------------------------------
 sys/kern/vfs_vnops.c        | 65 ++++++++++++++++++++++++++++++++++++++++++++-
 sys/opencrypto/cryptodev.c  |  3 ++-
 sys/sys/file.h              |  2 ++
 sys/sys/file2.h             |  6 +++++
 sys/vfs/devfs/devfs_vnops.c | 62 +++++++++++++++++++++++++++++++++++++++++-
 11 files changed, 152 insertions(+), 59 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/cc8e70bd591c943565dd618d131dcee0027ded02


-- 
DragonFly BSD source repository


More information about the Commits mailing list