| CTOD(9) | Kernel Developer's Manual | CTOD(9) | 
size
ctod(size x);
size
dtoc(size x);
size
ctob(size x);
size
btoc(size x);
size
dbtob(size x);
size
btodb(size x);
The following table lists the possible conversions:
| Macro | From | To | 
| ctod() | pages | disk blocks | 
| dtoc() | disk blocks | pages | 
| ctob() | pages | bytes | 
| btoc() | bytes | pages | 
| dbtob() | disk blocks | bytes | 
| btodb() | bytes | disk blocks | 
These are typical macros that may appear with different names in other operating systems. Examples include btop() and btopr() in Solaris.
| April 8, 2011 | NetBSD 6.1 |