]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add a new fo_fill_kinfo fileops method to add type-specific information to
authorJohn Baldwin <jhb@FreeBSD.org>
Mon, 22 Sep 2014 16:20:47 +0000 (16:20 +0000)
committerJohn Baldwin <jhb@FreeBSD.org>
Mon, 22 Sep 2014 16:20:47 +0000 (16:20 +0000)
commit9696feebe2320c9976607df4090f91a34c6549c3
tree1934338f5bf1e12f3ce97b74e9e403dcf5a32bc8
parent447666f08b3bcb4cd9662c3ed0bd388170a0a30d
Add a new fo_fill_kinfo fileops method to add type-specific information to
struct kinfo_file.
- Move the various fill_*_info() methods out of kern_descrip.c and into the
  various file type implementations.
- Rework the support for kinfo_ofile to generate a suitable kinfo_file object
  for each file and then convert that to a kinfo_ofile structure rather than
  keeping a second, different set of code that directly manipulates
  type-specific file information.
- Remove the shm_path() and ksem_info() layering violations.

Differential Revision: https://reviews.freebsd.org/D775
Reviewed by: kib, glebius (earlier version)
16 files changed:
sys/fs/devfs/devfs_vnops.c
sys/kern/kern_descrip.c
sys/kern/kern_event.c
sys/kern/sys_pipe.c
sys/kern/sys_procdesc.c
sys/kern/sys_socket.c
sys/kern/tty_pts.c
sys/kern/uipc_mqueue.c
sys/kern/uipc_sem.c
sys/kern/uipc_shm.c
sys/kern/vfs_vnops.c
sys/ofed/include/linux/linux_compat.c
sys/opencrypto/cryptodev.c
sys/sys/file.h
sys/sys/ksem.h
sys/sys/mman.h