1 /*
2  * Copyright (c) 1993 Jan-Simon Pendry
3  * Copyright (c) 1993
4  *	The Regents of the University of California.  All rights reserved.
5  *
6  * This code is derived from software contributed to Berkeley by
7  * Jan-Simon Pendry.
8  *
9  * %sccs.include.redist.c%
10  *
11  *	@(#)procfs_note.c	8.2 (Berkeley) 01/21/94
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 
26 int
27 procfs_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 }
48