Query: swab
OS: sunos
Section: 9f
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
swab(9F) Kernel Functions for Drivers swab(9F)NAMEswab - swap bytes in 16-bit halfwordsSYNOPSIS#include <sys/sunddi.h> void swab(void *src, void *dst, size_t nbytes);INTERFACE LEVELArchitecture independent level 1 (DDI/DKI).PARAMETERSsrc A pointer to the buffer containing the bytes to be swapped. dst A pointer to the destination buffer where the swapped bytes will be written. If dst is the same as src the buffer will be swapped in place. nbytes Number of bytes to be swapped, rounded down to the nearest half-word.DESCRIPTIONswab() copies the bytes in the buffer pointed to by src to the buffer pointer to by dst, swapping the order of adjacent bytes in half-word pairs as the copy proceeds. A total of nbytes bytes are copied, rounded down to the nearest half-word.CONTEXTswab() can be called from user or interrupt context.SEE ALSOWriting Device DriversNOTESSince swab() operates byte-by-byte, it can be used on non-aligned buffers. SunOS 5.10 1 Feb 1991 swab(9F)
Related Man Pages |
---|
swab(3c) - sunos |
swab(3p) - suse |
mlib_memmove(3mlib) - sunos |
strcpy(9f) - sunos |
mlib_memmove(3mlib) - opensolaris |
Similar Topics in the Unix Linux Community |
---|
How to determince CD is bootable or not |
FTP script variable issue |
Remoute hosted UNIX/Linux Machine Free |
Help with output 32bit signed integer |