- * If rout == 0 then killed on swap error, else
- * rout is the name of the routine where we ran out of
- * swap space.
- */
-swkill(p, rout)
- struct proc *p;
- char *rout;
-{
-
- printf("pid %d: %s\n", p->p_pid, rout);
- uprintf("sorry, pid %d was killed in %s\n", p->p_pid, rout);
- /*
- * To be sure no looping (e.g. in vmsched trying to
- * swap out) mark process locked in core (as though
- * done by user) after killing it so noone will try
- * to swap it out.
- */
- psignal(p, SIGKILL);
- p->p_flag |= SULOCK;
-}
-
-/*
- * Raw I/O. The arguments are
- * The strategy routine for the device
- * A buffer, which will either be a special buffer header owned
- * exclusively by the device for this purpose, or NULL,
- * indicating that we should use a swap buffer
- * The device number
- * Read/write flag
- * Essentially all the work is computing physical addresses and
- * validating them.