summaryrefslogtreecommitdiffstats
path: root/sys/fs/procfs/procfs_note.c
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2001-12-04 01:35:06 +0000
committerdes <des@FreeBSD.org>2001-12-04 01:35:06 +0000
commite05a1e171262ce51abe71929ef3e9a1ae6f484b4 (patch)
tree07f1c8ada3010a162b86de0898b3c815f2d89562 /sys/fs/procfs/procfs_note.c
parentff81a8c93d59929b948835d3b2ea7b294d3d55ea (diff)
downloadFreeBSD-src-e05a1e171262ce51abe71929ef3e9a1ae6f484b4.zip
FreeBSD-src-e05a1e171262ce51abe71929ef3e9a1ae6f484b4.tar.gz
Pseudofsize procfs(5).
Diffstat (limited to 'sys/fs/procfs/procfs_note.c')
-rw-r--r--sys/fs/procfs/procfs_note.c26
1 files changed, 8 insertions, 18 deletions
diff --git a/sys/fs/procfs/procfs_note.c b/sys/fs/procfs/procfs_note.c
index c669654..41f32b0 100644
--- a/sys/fs/procfs/procfs_note.c
+++ b/sys/fs/procfs/procfs_note.c
@@ -40,28 +40,18 @@
*/
#include <sys/param.h>
-#include <sys/vnode.h>
+#include <sys/lock.h>
+#include <sys/mutex.h>
+#include <sys/sbuf.h>
+
+#include <fs/pseudofs/pseudofs.h>
#include <fs/procfs/procfs.h>
int
-procfs_donote(curp, p, pfs, uio)
- struct proc *curp;
- struct proc *p;
- struct pfsnode *pfs;
- struct uio *uio;
+procfs_doprocnote(PFS_FILL_ARGS)
{
- int xlen;
- int error;
- char note[PROCFS_NOTELEN+1];
-
- if (uio->uio_rw != UIO_WRITE)
- return (EINVAL);
-
- xlen = PROCFS_NOTELEN;
- error = vfs_getuserstr(uio, note, &xlen);
- if (error)
- return (error);
-
+ sbuf_trim(sb);
+ sbuf_finish(sb);
/* send to process's notify function */
return (EOPNOTSUPP);
}
OpenPOWER on IntegriCloud