165522Spendry /*
265522Spendry  * Copyright (c) 1993 Jan-Simon Pendry
3*65809Sbostic  * Copyright (c) 1993
4*65809Sbostic  *	The Regents of the University of California.  All rights reserved.
565522Spendry  *
665522Spendry  * This code is derived from software contributed to Berkeley by
765522Spendry  * Jan-Simon Pendry.
865522Spendry  *
965522Spendry  * %sccs.include.redist.c%
1065522Spendry  *
11*65809Sbostic  *	@(#)procfs_note.c	8.2 (Berkeley) 01/21/94
1265522Spendry  *
1365522Spendry  * From:
1465522Spendry  *	$Id: procfs_note.c,v 3.2 1993/12/15 09:40:17 jsp Exp $
1565522Spendry  */
1665522Spendry 
1765522Spendry #include <sys/param.h>
1865522Spendry #include <sys/systm.h>
1965522Spendry #include <sys/time.h>
2065522Spendry #include <sys/kernel.h>
2165522Spendry #include <sys/proc.h>
2265522Spendry #include <sys/vnode.h>
2365522Spendry #include <sys/signal.h>
2465522Spendry #include <miscfs/procfs/procfs.h>
2565522Spendry 
2665522Spendry int
procfs_donote(curp,p,pfs,uio)2765522Spendry procfs_donote(curp, p, pfs, uio)
2865522Spendry 	struct proc *curp;
2965522Spendry 	struct proc *p;
3065522Spendry 	struct pfsnode *pfs;
3165522Spendry 	struct uio *uio;
3265522Spendry {
3365522Spendry 	int xlen;
3465522Spendry 	int error;
3565522Spendry 	char note[PROCFS_NOTELEN+1];
3665522Spendry 
3765522Spendry 	if (uio->uio_rw != UIO_WRITE)
3865522Spendry 		return (EINVAL);
3965522Spendry 
4065522Spendry 	xlen = PROCFS_NOTELEN;
4165522Spendry 	error = vfs_getuserstr(uio, note, &xlen);
4265522Spendry 	if (error)
4365522Spendry 		return (error);
4465522Spendry 
4565522Spendry 	/* send to process's notify function */
4665522Spendry 	return (EOPNOTSUPP);
4765522Spendry }
48