man pages section 9: DDI and DKI Kernel Functions

Exit Print View

Updated: July 2014
 
 

biosize(9F)

Name

biosize - returns size of a buffer structure

Synopsis

#include <sys/ddi.h>
#include <sys/sunddi.h>

size_t biosize(void)

Interface Level

Solaris DDI specific (Solaris DDI).

Description

The biosize() function returns the size in bytes of the buf(9S) structure. The biosize() function is used by drivers in combination with kmem_alloc(9F) and bioinit(9F) to allocate buffer structures embedded in other data structures.

Context

The biosize() function can be called from any context.

See also

biofini(9F), bioinit(9F), getrbuf(9F), kmem_alloc(9F), buf(9S)

Writing Device Drivers for Oracle Solaris 11.2