---
name: "put_unaligned"
section: "9"
platform: "linux"
package: "linux-manual-2.6.18"
version: "2.6.18.dfsg.1-26etch2"
release: "Debian 4.0 (Etch)"
platforms: ["linux"]
url: "https://new.carta.tech/put_unaligned"
---

# put\_unaligned(9)

put value to a possibly mis-aligned location

## NAME

put\_unaligned - put value to a possibly mis-aligned location

## SYNOPSIS

**put\_unaligned(***val***,** *ptr***);**

## ARGUMENTS

*val*

value to place

*ptr*

pointer to location

## DESCRIPTION

This macro should be used for placing values larger in size than single bytes at locations that are expected to be improperly aligned, e.g. writing a u16 value to a location not u16-aligned.

Note that unaligned accesses can be very expensive on some architectures.

## COPYRIGHT
