freebsd-dev/usr.bin/procstat
John Baldwin 688f8b822c Remove the cloned file descriptors for /dev/crypto.
Crypto file descriptors were added in the original OCF import as a way
to provide per-open data (specifically the list of symmetric
sessions).  However, this gives a bit of a confusing API where one has
to open /dev/crypto and then invoke an ioctl to obtain a second file
descriptor.  This also does not match the API used with /dev/crypto on
other BSDs or with Linux's /dev/crypto driver.

Character devices have gained support for per-open data via cdevpriv
since OCF was imported, so use cdevpriv to simplify the userland API
by permitting ioctls directly on /dev/crypto descriptors.

To provide backwards compatibility, CRIOGET now opens another
/dev/crypto descriptor via kern_openat() rather than dup'ing the
existing file descriptor.  This preserves prior semantics in case
CRIOGET is invoked multiple times on a single file descriptor.

Reviewed by:	markj
Relnotes:	yes
Sponsored by:	Chelsio Communications
Differential Revision:	https://reviews.freebsd.org/D27302
2020-11-25 00:10:54 +00:00
..
tests procstat/tests: Fix flakiness by waiting for program to start 2019-09-04 16:25:41 +00:00
Makefile Add pargs, penv, pwdx commands and aliases to procstat(1). 2020-09-18 12:59:27 +00:00
Makefile.depend DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
procstat_args.c Consistently use __FBSDID("FreeBSD") for ids in usr.bin/procstat. 2020-09-27 23:01:54 +00:00
procstat_auxv.c Consistently use __FBSDID("FreeBSD") for ids in usr.bin/procstat. 2020-09-27 23:01:54 +00:00
procstat_basic.c Consistently use __FBSDID("FreeBSD") for ids in usr.bin/procstat. 2020-09-27 23:01:54 +00:00
procstat_bin.c Consistently use __FBSDID("FreeBSD") for ids in usr.bin/procstat. 2020-09-27 23:01:54 +00:00
procstat_cred.c Consistently use __FBSDID("FreeBSD") for ids in usr.bin/procstat. 2020-09-27 23:01:54 +00:00
procstat_cs.c Consistently use __FBSDID("FreeBSD") for ids in usr.bin/procstat. 2020-09-27 23:01:54 +00:00
procstat_files.c Remove the cloned file descriptors for /dev/crypto. 2020-11-25 00:10:54 +00:00
procstat_kstack.c Consistently use __FBSDID("FreeBSD") for ids in usr.bin/procstat. 2020-09-27 23:01:54 +00:00
procstat_penv.c Add pargs, penv, pwdx commands and aliases to procstat(1). 2020-09-18 12:59:27 +00:00
procstat_ptlwpinfo.c Consistently use __FBSDID("FreeBSD") for ids in usr.bin/procstat. 2020-09-27 23:01:54 +00:00
procstat_pwdx.c Add pargs, penv, pwdx commands and aliases to procstat(1). 2020-09-18 12:59:27 +00:00
procstat_rlimit.c Consistently use __FBSDID("FreeBSD") for ids in usr.bin/procstat. 2020-09-27 23:01:54 +00:00
procstat_rusage.c Switch procstat from subcommand flags to verbs 2017-10-14 18:38:36 +00:00
procstat_sigs.c Consistently use __FBSDID("FreeBSD") for ids in usr.bin/procstat. 2020-09-27 23:01:54 +00:00
procstat_threads.c Consistently use __FBSDID("FreeBSD") for ids in usr.bin/procstat. 2020-09-27 23:01:54 +00:00
procstat_vm.c Consistently use __FBSDID("FreeBSD") for ids in usr.bin/procstat. 2020-09-27 23:01:54 +00:00
procstat.1 Remove the cloned file descriptors for /dev/crypto. 2020-11-25 00:10:54 +00:00
procstat.c procstat: Fix regression after 365880. 2020-09-29 00:20:58 +00:00
procstat.h Add pargs, penv, pwdx commands and aliases to procstat(1). 2020-09-18 12:59:27 +00:00