---
name: "get_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/get_unaligned"
---

# get\_unaligned(9)

get value from possibly mis-aligned location

## NAME

get\_unaligned - get value from possibly mis-aligned location

## SYNOPSIS

**get\_unaligned(***ptr***);**

## ARGUMENTS

*ptr*

pointer to value

## DESCRIPTION

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

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

## COPYRIGHT
