resourcevar.h (81493) | resourcevar.h (83366) |
---|---|
1/* 2 * Copyright (c) 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * @(#)resourcevar.h 8.4 (Berkeley) 1/9/95 | 1/* 2 * Copyright (c) 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * @(#)resourcevar.h 8.4 (Berkeley) 1/9/95 |
34 * $FreeBSD: head/sys/sys/resourcevar.h 81493 2001-08-10 22:53:32Z jhb $ | 34 * $FreeBSD: head/sys/sys/resourcevar.h 83366 2001-09-12 08:38:13Z julian $ |
35 */ 36 37#ifndef _SYS_RESOURCEVAR_H_ 38#define _SYS_RESOURCEVAR_H_ 39 40#include <sys/resource.h> 41#include <sys/queue.h> 42#ifdef _KERNEL --- 51 unchanged lines hidden (view full) --- 94 LIST_ENTRY(uidinfo) ui_hash; 95 rlim_t ui_sbsize; /* socket buffer space consumed */ 96 long ui_proccnt; /* number of processes */ 97 uid_t ui_uid; /* uid */ 98 u_short ui_ref; /* reference count */ 99 struct mtx ui_mtx; /* protect all counts/limits */ 100}; 101 | 35 */ 36 37#ifndef _SYS_RESOURCEVAR_H_ 38#define _SYS_RESOURCEVAR_H_ 39 40#include <sys/resource.h> 41#include <sys/queue.h> 42#ifdef _KERNEL --- 51 unchanged lines hidden (view full) --- 94 LIST_ENTRY(uidinfo) ui_hash; 95 rlim_t ui_sbsize; /* socket buffer space consumed */ 96 long ui_proccnt; /* number of processes */ 97 uid_t ui_uid; /* uid */ 98 u_short ui_ref; /* reference count */ 99 struct mtx ui_mtx; /* protect all counts/limits */ 100}; 101 |
102struct thread; 103struct kse; |
|
102struct proc; 103 | 104struct proc; 105 |
104void addupc_intr __P((struct proc *p, uintptr_t pc, u_int ticks)); 105void addupc_task __P((struct proc *p, uintptr_t pc, u_int ticks)); | 106void addupc_intr __P((struct kse *ke, uintptr_t pc, u_int ticks)); 107void addupc_task __P((struct kse *ke, uintptr_t pc, u_int ticks)); |
106void calcru __P((struct proc *p, struct timeval *up, struct timeval *sp, 107 struct timeval *ip)); 108int chgproccnt __P((struct uidinfo *uip, int diff, int max)); 109int chgsbsize __P((struct uidinfo *uip, u_long *hiwat, u_long to, 110 rlim_t max)); 111int fuswintr __P((void *base)); 112struct plimit 113 *limcopy __P((struct plimit *lim)); 114void ruadd __P((struct rusage *ru, struct rusage *ru2)); 115int suswintr __P((void *base, int word)); 116struct uidinfo 117 *uifind __P((uid_t uid)); 118void uihold __P((struct uidinfo *uip)); 119void uifree __P((struct uidinfo *uip)); 120void uihashinit __P((void)); 121#endif 122 123#endif /* !_SYS_RESOURCEVAR_H_ */ | 108void calcru __P((struct proc *p, struct timeval *up, struct timeval *sp, 109 struct timeval *ip)); 110int chgproccnt __P((struct uidinfo *uip, int diff, int max)); 111int chgsbsize __P((struct uidinfo *uip, u_long *hiwat, u_long to, 112 rlim_t max)); 113int fuswintr __P((void *base)); 114struct plimit 115 *limcopy __P((struct plimit *lim)); 116void ruadd __P((struct rusage *ru, struct rusage *ru2)); 117int suswintr __P((void *base, int word)); 118struct uidinfo 119 *uifind __P((uid_t uid)); 120void uihold __P((struct uidinfo *uip)); 121void uifree __P((struct uidinfo *uip)); 122void uihashinit __P((void)); 123#endif 124 125#endif /* !_SYS_RESOURCEVAR_H_ */ |