Lines Matching refs:proc
110 int donice(struct proc *curp, struct proc *chgp, int n);
111 int dosetrlimit(struct proc *p, u_int which, struct rlimit *limp);
113 static void do_background_socket(struct proc *p, thread_t thread, int priority);
114 static int do_background_thread(struct proc *curp, thread_t thread, int priority);
115 static int do_background_proc(struct proc *curp, struct proc *targetp, int priority);
128 __private_extern__ int maxfilesperproc = OPEN_MAX; /* per-proc open files limit */
160 getpriority(struct proc *curp, struct getpriority_args *uap, int32_t *retval)
162 struct proc *p;
252 /* call back function used for proc iteration in PRIO_USER */
275 /* call back function used for proc iteration in PRIO_PGRP */
303 setpriority(struct proc *curp, struct setpriority_args *uap, __unused int32_t *retval)
305 struct proc *p;
429 donice(struct proc *curp, struct proc *chgp, int n)
468 do_background_proc(struct proc *curp, struct proc *targetp, int priority)
504 do_background_socket(struct proc *p, thread_t thread, int priority)
579 do_background_thread(struct proc *curp __unused, thread_t thread, int priority)
603 struct proc *curp = NULL;
604 struct proc *targetp = NULL;
649 setrlimit(struct proc *p, struct setrlimit_args *uap, __unused int32_t *retval)
672 dosetrlimit(struct proc *p, u_int which, struct rlimit *limp)
919 getrlimit(struct proc *p, struct getrlimit_args *uap, __unused int32_t *retval)
937 * Transform the running time and tick information in proc p into user,
940 /* No lock on proc is held for this.. */
942 calcru(struct proc *p, struct timeval *up, struct timeval *sp, struct timeval *ip)
1006 getrusage(struct proc *p, struct getrusage_args *uap, __unused int32_t *retval)
1187 iopolicysys(__unused struct proc *p, __unused struct iopolicysys_args *uap, __unused int32_t *retval)