]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC 233760:
authorjhb <jhb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 6 Jun 2012 21:57:03 +0000 (21:57 +0000)
committerjhb <jhb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 6 Jun 2012 21:57:03 +0000 (21:57 +0000)
commit4e0cb4b2a0a123023678b5d04848efe8ca87652d
treebbe6067b56263203c05d54088e1960fd958d754b
parent0009ef5d446ab5ae1e395c5a0daa743986c61e13
MFC 233760:
Export some more useful info about shared memory objects to userland
via procstat(1) and fstat(1):
- Change shm file descriptors to track the pathname they are associated
  with and add a shm_path() method to copy the path out to a caller-supplied
  buffer.
- Use shm_path() to export the path of a shared memory object via
  struct kinfo_file.
- Change procstat to always print out the path for a given object if it
  is valid.
- Teach fstat about shared memory objects and to display their path,
  mode, and size.

git-svn-id: svn://svn.freebsd.org/base/stable/8@236699 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/kern/kern_descrip.c
sys/kern/uipc_shm.c
sys/sys/mman.h
usr.bin/fstat/fstat.c
usr.bin/procstat/procstat_files.c