Home | History | Annotate | Download | only in fstat
History log of /src/usr.bin/fstat/misc.c
RevisionDateAuthorComments
 1.27  29-Jul-2023  riastradh sys: Rename sys/miscfd.h -> sys/memfd.h.

Let's not create new dumping grounds for miscellaneous stuff; one
header file for one purpose.
 1.26  10-Jul-2023  christos move the memfd struct to a separate file. Requested by riastradh@
 1.25  10-Jul-2023  christos Add memfd_create(2) from GSoC 2023 by Theodore Preduta
 1.24  13-Sep-2020  isaki Support audio descriptor for fstat(1).
sys/dev/audio/*.h: export only what we need for fstat.
 1.23  02-May-2020  christos nuke random stuff that does not exist anymore.
 1.22  06-Sep-2019  christos Add -O to print offsets; align columns properly.
 1.21  03-Feb-2019  thorpej Implement support for "pshared" POSIX semaphores.

Fixes lib/53273 (and Firefox's multi-process tab feature).
 1.20  26-Jun-2018  msaitoh branches: 1.20.2;
Print BPF direction correctly.
 1.19  26-Jun-2018  msaitoh Implement the BPF direction filter (BIOC[GS]DIRECTION). It provides backward
compatibility with BIOC[GS]SEESENT ioctl. The userland interface is the same
as FreeBSD.

This change also fixes a bug that the direction is misunderstand on some
environment by passing the direction to bpf_mtap*() instead of checking
m->m_pkthdr.rcvif.
 1.18  04-Jun-2018  nat Update fstat for audio(4) and pad(4) devices.

XXX - pullup 8.

Ok christos@.
 1.17  30-Dec-2016  christos branches: 1.17.6; 1.17.12;
Print the interface for bpf.
 1.16  23-Jan-2016  christos branches: 1.16.2;
put _KMEMUSER in the Makefile
 1.15  30-Dec-2015  christos Add rnd ops.
 1.14  10-Aug-2014  tls Merge tls-earlyentropy branch into HEAD.
 1.13  01-Jul-2013  riastradh branches: 1.13.4;
Fix races in /dev/u?random initialization and accounting.

- Push /dev/random `information-theoretic' accounting into cprng(9).
- Use percpu(9) for the per-CPU CPRNGs.
- Use atomics with correct memory barriers for lazy CPRNG creation.
- Remove /dev/random file kmem grovelling from fstat(1).
 1.12  23-Jun-2013  riastradh Rework rndsink(9) abstraction and adapt arc4random(9) and cprng(9).

rndsink(9):
- Simplify API.
- Simplify locking scheme.
- Add a man page.
- Avoid races in destruction.
- Avoid races in requesting entropy now and scheduling entropy later.

Periodic distribution of entropy to sinks reduces the need for the
last one, but this way we don't need to rely on periodic distribution
(e.g., in a future tickless NetBSD).

rndsinks_lock should probably eventually merge with the rndpool lock,
but we'll put that off for now.

cprng(9):
- Make struct cprng_strong opaque.
- Move rndpseudo.c parts that futz with cprng guts to subr_cprng.c.
- Fix kevent locking. (Is kevent locking documented anywhere?)
- Stub out rump cprng further until we can rumpify rndsink instead.
- Strip code to grovel through struct cprng_strong in fstat.
 1.11  25-Nov-2012  christos support printing rnd descriptor info
 1.10  25-Nov-2012  christos return stuff for ksem
 1.9  27-Oct-2012  alnsn Report jit'ed bpf fildes in fstat.
 1.8  10-Sep-2011  christos branches: 1.8.2; 1.8.8;
add all the possible fileops here, and if there is one we know about
print that instead of the passed name.
 1.7  13-Jul-2009  christos move _KMEMUSER higher!
 1.6  13-Jul-2009  christos need _KMEMUSER too.
 1.5  13-Jul-2009  christos sys/mqueue.h needs sys/types.h now
 1.4  12-Apr-2009  lukem Fix sign-compare issues.
 1.3  26-Feb-2009  christos only print warnings if vflg.
 1.2  23-Jul-2008  christos branches: 1.2.2; 1.2.6; 1.2.8;
handle more types.
 1.1  22-Jul-2008  christos a better attempt on printing dtype_misc
 1.2.8.1  13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.2.6.1  30-Mar-2009  snj Pull up following revision(s) (requested by dholland in ticket #618):
usr.bin/fstat/misc.c: revision 1.3
only print warnings if vflg.
 1.2.2.2  18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.2.2.1  23-Jul-2008  wrstuden file misc.c was added on branch wrstuden-revivesa on 2008-09-18 04:29:12 +0000
 1.8.8.3  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.8.8.2  25-Feb-2013  tls resync with head
 1.8.8.1  20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.8.2.3  22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.8.2.2  16-Jan-2013  yamt sync with (a bit old) head
 1.8.2.1  30-Oct-2012  yamt sync with head
 1.13.4.1  07-Apr-2014  tls Be a little more clear and consistent about harvesting entropy from devices:

1) deprecate RND_FLAG_NO_ESTIMATE

2) define RND_FLAG_COLLECT_TIME, RND_FLAG_COLLECT_VALUE

3) define RND_FLAG_ESTIMATE_TIME, RND_FLAG_ESTIMATE_VALUE

4) define RND_FLAG_DEFAULT: RND_FLAG_COLLECT_TIME|
RND_FLAG_COLLECT_VALUE|RND_FLAG_ESTIMATE_TIME

5) Make entropy harvesting from environmental sensors a little more generic
and remove it from individual sensor drivers.

6) Remove individual open-coded delta-estimators for values from a few
places in the tree (uvm, environmental drivers).

7) 0 -> RND_FLAG_DEFAULT, actually gather entropy from various drivers
that had stubbed out code, other minor cleanups.
 1.16.2.1  07-Jan-2017  pgoyette Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
 1.17.12.2  28-Jul-2018  pgoyette Sync with HEAD
 1.17.12.1  25-Jun-2018  pgoyette Sync with HEAD
 1.17.6.1  09-Jun-2018  martin Pull up following revision(s) (requested by nat in ticket #873):
usr.bin/fstat/misc.c: revision 1.18
Update fstat for audio(4) and pad(4) devices.
XXX - pullup 8.
Ok christos@.
 1.20.2.2  13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.20.2.1  10-Jun-2019  christos Sync with HEAD

RSS XML Feed