User Tools

Site Tools


solaris:bioaligned.9f

bioaligned


NAME

bioaligned - check alignment of buffer data

SYNOPSIS

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

int bioaligned(struct buf *bp, size_t align, int flags);

PARAMETERS

bp

Pointer to the buf(9S) structure describing the original I/O request.

align

Power of two alignment being checked.

flags

Determines the type of alignment being checked. Flag values supported are BIOALIGNED_BEGIN (which checks the beginning address alignment), and BIOALIGNED_END (which checks the ending address alignment).

INTERFACE LEVEL

Solaris DDI specific (Solaris DDI).

DESCRIPTION

The bioaligned() function checks the alignment of memory associated with a buffer. It returns 1 if the buffer is aligned and 0 if the buffer is unaligned.

RETURN VALUES

The bioaligned() function returns 1 if the buffer is aligned and 0 if the buffer is unaligned.

CONTEXT

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

ATTRIBUTES

See attributes(7) for descriptions of the following attributes:

SEE ALSO

attributes(7), biodone(9F), bp_mapin(9F), freerbuf(9F), getrbuf(9F), buf(9S)


solaris/bioaligned.9f.txt · Last modified: 2023/07/19 08:58 by A User Not Logged in