freebsd-dev/lib/libprocstat
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
..
zfs Merge OpenZFS support in to HEAD. 2020-08-25 02:21:27 +00:00
cd9660.c spdx: initial adoption of licensing ID tags. 2017-11-18 14:26:50 +00:00
common_kvm.c spdx: initial adoption of licensing ID tags. 2017-11-18 14:26:50 +00:00
common_kvm.h lib: further adoption of SPDX licensing ID tags. 2017-11-26 02:00:33 +00:00
core.c lib: further adoption of SPDX licensing ID tags. 2017-11-26 02:00:33 +00:00
core.h lib: further adoption of SPDX licensing ID tags. 2017-11-26 02:00:33 +00:00
libprocstat_compat.c Bump SPECNAMELEN to MAXNAMLEN. 2019-01-27 00:46:06 +00:00
libprocstat_internal.h lib: further adoption of SPDX licensing ID tags. 2017-11-26 02:00:33 +00:00
libprocstat.3 libprocstat(3): fix arguments list for procstat_getargv(3) and procstat_getenvv(3) 2017-07-29 22:25:45 +00:00
libprocstat.c Remove the cloned file descriptors for /dev/crypto. 2020-11-25 00:10:54 +00:00
libprocstat.h Remove the cloned file descriptors for /dev/crypto. 2020-11-25 00:10:54 +00:00
Makefile Avoid adding duplicates to SRCS/OBJS/SOBJS/POBJS 2020-08-24 09:20:33 +00:00
Makefile.depend Update Makefile.depend files 2019-12-11 17:37:53 +00:00
msdosfs.c spdx: initial adoption of licensing ID tags. 2017-11-18 14:26:50 +00:00
smbfs.c lib: further adoption of SPDX licensing ID tags. 2017-11-26 02:00:33 +00:00
Symbol.map Bump SPECNAMELEN to MAXNAMLEN. 2019-01-27 00:46:06 +00:00
udf.c lib: further adoption of SPDX licensing ID tags. 2017-11-26 02:00:33 +00:00
zfs_defs.c Merge OpenZFS support in to HEAD. 2020-08-25 02:21:27 +00:00
zfs_defs.h libprocstat: fix ZFS support 2020-05-22 11:20:23 +00:00
zfs.c libprocstat: fix ZFS support 2020-05-22 11:20:23 +00:00