Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Lhits int
Functions ¶
This section is empty.
Types ¶
type Sysatomic_t ¶
type Sysatomic_t int64
func (*Sysatomic_t) Give ¶
func (s *Sysatomic_t) Give()
func (*Sysatomic_t) Given ¶
func (s *Sysatomic_t) Given(_n uint)
func (*Sysatomic_t) Take ¶
func (s *Sysatomic_t) Take() bool
returns false if the limit has been reached.
func (*Sysatomic_t) Taken ¶
func (s *Sysatomic_t) Taken(_n uint) bool
type Syslimit_t ¶
type Syslimit_t struct { // protected by proclock Sysprocs int // proctected by idmonl lock Vnodes int // proctected by _allfutex lock Futexes int // proctected by arptbl lock Arpents int // proctected by routetbl lock Routes int // per TCP socket tx/rx segments to remember Tcpsegs int // socks includes pipes and all TCP connections in TIMEWAIT. Socks Sysatomic_t // total cached dirents // total pipes Pipes Sysatomic_t // additional memory filesystem per-page objects; each file gets one // freebie. Mfspgs Sysatomic_t // shared buffer space //shared Sysatomic_t // bdev blocks Blocks int }
var Syslimit *Syslimit_t = MkSysLimit()
func MkSysLimit ¶
func MkSysLimit() *Syslimit_t
Click to show internal directories.
Click to hide internal directories.