freebsd-dev/sys/fs/pseudofs
Conrad Meyer 20172854ab Add sbuf streaming mode to pseudofs(9), use in linprocfs(5)
Add a pseudofs node flag 'PFS_AUTODRAIN', which automatically emits sbuf
contents to the caller when the sbuf buffer fills.  This is only
permissible if the corresponding PFS node fill function can sleep
whenever it appends to the sbuf.

linprocfs' /proc/self/maps node happens to meet this requirement.
Streaming out the file as it is composed avoids truncating the output
and also avoids preallocating a very large buffer.

Reviewed by:	markj; earlier version: emaste, kib, trasz
Differential Revision:	https://reviews.freebsd.org/D27047
2020-11-05 06:48:51 +00:00
..
pseudofs_fileno.c sys/fs: further adoption of SPDX licensing ID tags. 2017-11-27 15:15:37 +00:00
pseudofs_internal.h pseudofs: hashed vncache 2019-10-22 22:52:53 +00:00
pseudofs_vncache.c vfs: remove the thread argument from vget 2020-08-16 17:18:54 +00:00
pseudofs_vnops.c Add sbuf streaming mode to pseudofs(9), use in linprocfs(5) 2020-11-05 06:48:51 +00:00
pseudofs.c Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (10 of many) 2020-02-24 10:37:56 +00:00
pseudofs.h Add sbuf streaming mode to pseudofs(9), use in linprocfs(5) 2020-11-05 06:48:51 +00:00