The
ctod family of macros can be used to convert between bytes, pages (“clicks”), and disk blocks.
The following table lists the possible conversions:
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.