|
||
Interface status: | externallyDefinedApi |
BLKDEV_IOSIZE PAGE_SIZE
default block device I/O size
Interface status: | externallyDefinedApi |
DFLTPHYS (64 * 1024)
default max raw IO transfer size
Interface status: | externallyDefinedApi |
MAXDUMPPGS (DFLTPHYS/PAGE_SIZE)
(DFLTPHYS by PAGE_SIZE)
Interface status: | externallyDefinedApi |
ctob (x) ((x)<<PAGE_SHIFT)
clicks to bytes
|
Interface status: | externallyDefinedApi |
btoc (x) (((vm_offset_t)(x)+PAGE_MASK)>>PAGE_SHIFT)
bytes to clicks
|
Interface status: | externallyDefinedApi |
btodb (bytes) (sizeof (bytes) > sizeof(long) \
? (daddr_t)((unsigned long long)(bytes) >> DEV_BSHIFT) \
: (daddr_t)((unsigned long)(bytes) >> DEV_BSHIFT))
calculates (bytes by DEV_BSIZE)
|
Interface status: | externallyDefinedApi |
dbtob (db) ((off_t)(db) << DEV_BSHIFT)
calculates (db)(DEV_BSIZE)
|
Interface status: | externallyDefinedApi |
PCATCH 0x100
ORd with pri for tsleep to check signals
Interface status: | externallyDefinedApi |
PDROP 0x200
ORd with pri to stop re-entry of interlock mutex
Interface status: | externallyDefinedApi |
NBPW sizeof(int)
number of bytes per word (integer)
Interface status: | externallyDefinedApi |
CBLOCK 128
Clist block size, must be a power of 2.
Interface status: | externallyDefinedApi |
CBSIZE (CBLOCK - sizeof(struct cblock *) - CBQSIZE)
Data chars or clist
Interface status: | externallyDefinedApi |
MAXBSIZE 65536
Filesystems are made out of blocks of at most MAXBSIZE bytes per block. MAXBSIZE may be made larger without effecting any existing filesystems as long as it does not exceed MAXPHYS, and may be made smaller at the risk of not being able to use filesystems which require a block size exceeding MAXBSIZE.
Interface status: | externallyDefinedApi |
BKVASIZE 16384
Nominal buffer space per buffer, in bytes. BKVASIZE is the minimum KVM memory reservation the kernel is willing to make. Filesystems can of course request smaller chunks. Actual backing memory uses a chunk size of a page (PAGE_SIZE).
Interface status: | externallyDefinedApi |
BKVAMASK (BKVASIZE-1)
File system parameter and macros
Interface status: | externallyDefinedApi |
MAXSYMLINKS 32
Maximum number of symbolic links that may be expanded in a path name. It should be set high enough to allow all legitimate uses, but halt infinite loops reasonably quickly.
Interface status: | externallyDefinedApi |
howmany (x, y) (((x)+((y)-1))/(y))
Macros for counting and rounding.
|
roundup (x, y) ((((x)+((y)-1))/(y))*(y))
Macros for counting and rounding.
|
roundup2 (x, y) (((x)+((y)-1))&(~((y)-1)))
Macros for counting and rounding.
|
Interface status: | externallyDefinedApi |
powerof2 (x) ((((x)-1)&(x))==0)
Macros for counting and rounding.
|
Interface status: | externallyDefinedApi |
MAX (a, b) (((a)>(b))?(a):(b))
Macros for min or max.
|
Interface status: | externallyDefinedApi |
MINBUCKET 4
min allocation of 32 bytes or 16 bytes
Interface status: | externallyDefinedApi |
FSCALE (1<<FSHIFT)
bits to right 1 shift