API published in:
API deprecated in:
#include <sys/_null.h>
#include <sys/types.h>
#include <sys/syslimits.h>
#include <sys/signal.h>
#include <machine/param.h>
#include <sys/limits.h>
Go to the source code of this file.
Defines |
|
#define | BSD 199506 |
#define | BSD4_3 1 |
#define | BSD4_4 1 |
#define | __FreeBSD_version 600034 |
#define | MAXCOMLEN 19 |
#define | MAXINTERP 32 |
#define | MAXLOGNAME 17 |
#define | MAXUPRC CHILD_MAX |
#define | NCARGS ARG_MAX |
#define | NGROUPS NGROUPS_MAX |
#define | NOFILE OPEN_MAX |
#define | NOGROUP 65535 |
#define | MAXHOSTNAMELEN 256 |
#define | SPECNAMELEN 63 |
#define | DEV_BSHIFT 9 |
#define | DEV_BSIZE (1<<DEV_BSHIFT) |
#define | BLKDEV_IOSIZE PAGE_SIZE |
#define | DFLTPHYS (64 * 1024) |
#define | MAXPHYS (128 * 1024) |
#define | MAXDUMPPGS (DFLTPHYS/PAGE_SIZE) |
#define | MSIZE 256 |
#define | MCLSHIFT 11 |
#define | MCLBYTES (1 << MCLSHIFT) |
#define | ctob(x) ((x)<<PAGE_SHIFT) |
#define | btoc(x) (((vm_offset_t)(x)+PAGE_MASK)>>PAGE_SHIFT) |
#define | btodb(bytes) |
#define | dbtob(db) |
#define | PRIMASK 0x0ff |
#define | PCATCH 0x100 |
#define | PDROP 0x200 |
#define | NZERO 0 |
#define | NBBY 8 |
#define | NBPW sizeof(int) |
#define | CMASK 022 |
#define | NODEV (dev_t)(-1) |
#define | CBLOCK 128 |
#define | CBQSIZE (CBLOCK/NBBY) |
#define | CBSIZE (CBLOCK - sizeof(struct cblock *) - CBQSIZE) |
#define | CROUND (CBLOCK - 1) |
#define | MAXBSIZE 65536 |
#define | BKVASIZE 16384 |
#define | BKVAMASK (BKVASIZE-1) |
#define | MAXPATHLEN PATH_MAX |
#define | MAXSYMLINKS 32 |
#define | setbit(a, i) ((a)[(i)/NBBY] |= 1<<((i)%NBBY)) |
#define | clrbit(a, i) ((a)[(i)/NBBY] &= ~(1<<((i)%NBBY))) |
#define | isset(a, i) ((a)[(i)/NBBY] & (1<<((i)%NBBY))) |
#define | isclr(a, i) (((a)[(i)/NBBY] & (1<<((i)%NBBY))) == 0) |
#define | howmany(x, y) (((x)+((y)-1))/(y)) |
#define | rounddown(x, y) (((x)/(y))*(y)) |
#define | roundup(x, y) ((((x)+((y)-1))/(y))*(y)) |
#define | roundup2(x, y) (((x)+((y)-1))&(~((y)-1))) |
#define | powerof2(x) ((((x)-1)&(x))==0) |
#define | MIN(a, b) (((a)<(b))?(a):(b)) |
#define | MAX(a, b) (((a)>(b))?(a):(b)) |
#define | MINBUCKET 4 |
#define | MAXALLOCSAVE (2 * PAGE_SIZE) |
#define | FSHIFT 11 |
#define | FSCALE (1<<FSHIFT) |
#define | dbtoc(db) |
#define | ctodb(db) |
|
|
|
|
|
|
|
|
|
Value: /* calculates (bytes / DEV_BSIZE) */ \ (sizeof (bytes) > sizeof(long) \ ? (daddr_t)((unsigned long long)(bytes) >> DEV_BSHIFT) \ : (daddr_t)((unsigned long)(bytes) >> DEV_BSHIFT)) |
|
|
|
|
|
|
|
|
Value: /* calculates pages to devblks */ \ ((db) << (PAGE_SHIFT - DEV_BSHIFT)) |
|
Value: /* calculates (db * DEV_BSIZE) */ \ ((off_t)(db) << DEV_BSHIFT) |
|
Value: /* calculates devblks to pages */ \ ((db + (ctodb(1) - 1)) >> (PAGE_SHIFT - DEV_BSHIFT)) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|