swap_buf_le16(9)

swap_buf_le169

Swap halves of 16-bit words in place

Usage

void swap_buf_le16(u16 * buf, unsigned int buf_words);

Arguments

buf

Buffer to swap

buf_words

Number of 16-bit words in buffer.

Overview

Swap halves of 16-bit words if needed to convert from little-endian byte order to native cpu byte order, or vice-versa.

LOCKING: Inherited from caller.

Releases

6 releases since Debian 4.0 (Etch); the text changed 5 times.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 7
  5. 8
  6. 9

Author

Jeff Garzik

Author.

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.