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