pass V_SAVE to vinvalbuf
[unix-history] / usr / src / sys / miscfs / procfs / procfs_note.c
CommitLineData
66375577 1/*
66375577 2 * Copyright (c) 1993 Jan-Simon Pendry
1611db1e
KB
3 * Copyright (c) 1993
4 * The Regents of the University of California. All rights reserved.
66375577
JSP
5 *
6 * This code is derived from software contributed to Berkeley by
7 * Jan-Simon Pendry.
8 *
9 * %sccs.include.redist.c%
10 *
1611db1e 11 * @(#)procfs_note.c 8.2 (Berkeley) %G%
66375577
JSP
12 *
13 * From:
14 * $Id: procfs_note.c,v 3.2 1993/12/15 09:40:17 jsp Exp $
15 */
16
17#include <sys/param.h>
18#include <sys/systm.h>
19#include <sys/time.h>
20#include <sys/kernel.h>
21#include <sys/proc.h>
22#include <sys/vnode.h>
23#include <sys/signal.h>
24#include <miscfs/procfs/procfs.h>
25
26int
27procfs_donote(curp, p, pfs, uio)
28 struct proc *curp;
29 struct proc *p;
30 struct pfsnode *pfs;
31 struct uio *uio;
32{
33 int xlen;
34 int error;
35 char note[PROCFS_NOTELEN+1];
36
37 if (uio->uio_rw != UIO_WRITE)
38 return (EINVAL);
39
40 xlen = PROCFS_NOTELEN;
41 error = vfs_getuserstr(uio, note, &xlen);
42 if (error)
43 return (error);
44
45 /* send to process's notify function */
46 return (EOPNOTSUPP);
47}