smartmontools SVN Rev 5618
Utility to control and monitor storage systems with "S.M.A.R.T."
Functions
sg_unaligned.h File Reference
#include <stdbool.h>
#include <stdint.h>
#include <string.h>
Include dependency graph for sg_unaligned.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

static uint16_t sg_get_unaligned_be16 (const void *p)
 
static uint32_t sg_get_unaligned_be32 (const void *p)
 
static uint64_t sg_get_unaligned_be64 (const void *p)
 
static void sg_put_unaligned_be16 (uint16_t val, void *p)
 
static void sg_put_unaligned_be32 (uint32_t val, void *p)
 
static void sg_put_unaligned_be64 (uint64_t val, void *p)
 
static uint16_t sg_get_unaligned_le16 (const void *p)
 
static uint32_t sg_get_unaligned_le32 (const void *p)
 
static uint64_t sg_get_unaligned_le64 (const void *p)
 
static void sg_put_unaligned_le16 (uint16_t val, void *p)
 
static void sg_put_unaligned_le32 (uint32_t val, void *p)
 
static void sg_put_unaligned_le64 (uint64_t val, void *p)
 
static uint32_t sg_get_unaligned_be24 (const void *p)
 
static uint64_t sg_get_unaligned_be48 (const void *p)
 
static uint64_t sg_get_unaligned_be (int num_bytes, const void *p)
 
static void sg_put_unaligned_be24 (uint32_t val, void *p)
 
static void sg_put_unaligned_be48 (uint64_t val, void *p)
 
static uint32_t sg_get_unaligned_le24 (const void *p)
 
static uint64_t sg_get_unaligned_le48 (const void *p)
 
static void sg_put_unaligned_le24 (uint32_t val, void *p)
 
static void sg_put_unaligned_le48 (uint64_t val, void *p)
 
static uint64_t sg_get_unaligned_le (int num_bytes, const void *p)
 
static void sg_nz_put_unaligned_be16 (uint16_t val, void *p)
 
static void sg_nz_put_unaligned_be24 (uint32_t val, void *p)
 
static void sg_nz_put_unaligned_be32 (uint32_t val, void *p)
 
static void sg_nz_put_unaligned_be64 (uint64_t val, void *p)
 
static void sg_nz_put_unaligned_le16 (uint16_t val, void *p)
 
static void sg_nz_put_unaligned_le24 (uint32_t val, void *p)
 
static void sg_nz_put_unaligned_le32 (uint32_t val, void *p)
 
static void sg_nz_put_unaligned_le64 (uint64_t val, void *p)
 

Function Documentation

◆ sg_get_unaligned_be()

static uint64_t sg_get_unaligned_be ( int  num_bytes,
const void *  p 
)
inlinestatic

Definition at line 350 of file sg_unaligned.h.

◆ sg_get_unaligned_be16()

static uint16_t sg_get_unaligned_be16 ( const void *  p)
inlinestatic

Definition at line 256 of file sg_unaligned.h.

◆ sg_get_unaligned_be24()

static uint32_t sg_get_unaligned_be24 ( const void *  p)
inlinestatic

Definition at line 334 of file sg_unaligned.h.

◆ sg_get_unaligned_be32()

static uint32_t sg_get_unaligned_be32 ( const void *  p)
inlinestatic

Definition at line 261 of file sg_unaligned.h.

◆ sg_get_unaligned_be48()

static uint64_t sg_get_unaligned_be48 ( const void *  p)
inlinestatic

Definition at line 341 of file sg_unaligned.h.

◆ sg_get_unaligned_be64()

static uint64_t sg_get_unaligned_be64 ( const void *  p)
inlinestatic

Definition at line 267 of file sg_unaligned.h.

◆ sg_get_unaligned_le()

static uint64_t sg_get_unaligned_le ( int  num_bytes,
const void *  p 
)
inlinestatic

Definition at line 413 of file sg_unaligned.h.

◆ sg_get_unaligned_le16()

static uint16_t sg_get_unaligned_le16 ( const void *  p)
inlinestatic

Definition at line 292 of file sg_unaligned.h.

◆ sg_get_unaligned_le24()

static uint32_t sg_get_unaligned_le24 ( const void *  p)
inlinestatic

Definition at line 379 of file sg_unaligned.h.

◆ sg_get_unaligned_le32()

static uint32_t sg_get_unaligned_le32 ( const void *  p)
inlinestatic

Definition at line 297 of file sg_unaligned.h.

◆ sg_get_unaligned_le48()

static uint64_t sg_get_unaligned_le48 ( const void *  p)
inlinestatic

Definition at line 386 of file sg_unaligned.h.

◆ sg_get_unaligned_le64()

static uint64_t sg_get_unaligned_le64 ( const void *  p)
inlinestatic

Definition at line 303 of file sg_unaligned.h.

◆ sg_nz_put_unaligned_be16()

static void sg_nz_put_unaligned_be16 ( uint16_t  val,
void *  p 
)
inlinestatic

Definition at line 430 of file sg_unaligned.h.

◆ sg_nz_put_unaligned_be24()

static void sg_nz_put_unaligned_be24 ( uint32_t  val,
void *  p 
)
inlinestatic

Definition at line 436 of file sg_unaligned.h.

◆ sg_nz_put_unaligned_be32()

static void sg_nz_put_unaligned_be32 ( uint32_t  val,
void *  p 
)
inlinestatic

Definition at line 445 of file sg_unaligned.h.

◆ sg_nz_put_unaligned_be64()

static void sg_nz_put_unaligned_be64 ( uint64_t  val,
void *  p 
)
inlinestatic

Definition at line 451 of file sg_unaligned.h.

◆ sg_nz_put_unaligned_le16()

static void sg_nz_put_unaligned_le16 ( uint16_t  val,
void *  p 
)
inlinestatic

Definition at line 457 of file sg_unaligned.h.

◆ sg_nz_put_unaligned_le24()

static void sg_nz_put_unaligned_le24 ( uint32_t  val,
void *  p 
)
inlinestatic

Definition at line 463 of file sg_unaligned.h.

◆ sg_nz_put_unaligned_le32()

static void sg_nz_put_unaligned_le32 ( uint32_t  val,
void *  p 
)
inlinestatic

Definition at line 472 of file sg_unaligned.h.

◆ sg_nz_put_unaligned_le64()

static void sg_nz_put_unaligned_le64 ( uint64_t  val,
void *  p 
)
inlinestatic

Definition at line 478 of file sg_unaligned.h.

◆ sg_put_unaligned_be16()

static void sg_put_unaligned_be16 ( uint16_t  val,
void *  p 
)
inlinestatic

Definition at line 273 of file sg_unaligned.h.

◆ sg_put_unaligned_be24()

static void sg_put_unaligned_be24 ( uint32_t  val,
void *  p 
)
inlinestatic

Definition at line 364 of file sg_unaligned.h.

◆ sg_put_unaligned_be32()

static void sg_put_unaligned_be32 ( uint32_t  val,
void *  p 
)
inlinestatic

Definition at line 279 of file sg_unaligned.h.

◆ sg_put_unaligned_be48()

static void sg_put_unaligned_be48 ( uint64_t  val,
void *  p 
)
inlinestatic

Definition at line 372 of file sg_unaligned.h.

◆ sg_put_unaligned_be64()

static void sg_put_unaligned_be64 ( uint64_t  val,
void *  p 
)
inlinestatic

Definition at line 285 of file sg_unaligned.h.

◆ sg_put_unaligned_le16()

static void sg_put_unaligned_le16 ( uint16_t  val,
void *  p 
)
inlinestatic

Definition at line 309 of file sg_unaligned.h.

◆ sg_put_unaligned_le24()

static void sg_put_unaligned_le24 ( uint32_t  val,
void *  p 
)
inlinestatic

Definition at line 392 of file sg_unaligned.h.

◆ sg_put_unaligned_le32()

static void sg_put_unaligned_le32 ( uint32_t  val,
void *  p 
)
inlinestatic

Definition at line 315 of file sg_unaligned.h.

◆ sg_put_unaligned_le48()

static void sg_put_unaligned_le48 ( uint64_t  val,
void *  p 
)
inlinestatic

Definition at line 400 of file sg_unaligned.h.

◆ sg_put_unaligned_le64()

static void sg_put_unaligned_le64 ( uint64_t  val,
void *  p 
)
inlinestatic

Definition at line 321 of file sg_unaligned.h.