XenevaOS
Loading...
Searching...
No Matches
Macros | Typedefs
types.h File Reference
#include <linux/kernel.h>
#include <stdbool.h>
Include dependency graph for types.h:

Go to the source code of this file.

Macros

#define __LITTLE_ENDIAN   1234
 
#define __PDP_ENDIAN   3412
 
#define le16_to_cpu(x)   ((__u16)(x))
 
#define cpu_to_le16(x)   ((__le16)(__u16)(x))
 
#define le32_to_cpu(x)   ((__u32)(x))
 
#define cpu_to_le32(x)   ((__le32)(__u32)(x))
 
#define le64_to_cpu(x)   ((__u64)(x))
 
#define cpu_to_le64(x)   ((__le64)(__u64)(x))
 
#define be16_to_cpu(x)   ((__u16)__builtin_bswap16((unsigned short)(x)))
 
#define cpu_to_be16(x)   ((__be16)__builtin_bswap16((unsigned short)(x)))
 
#define be32_to_cpu(x)   ((__u32)__builtin_bswap32((unsigned int)(x)))
 
#define cpu_to_be32(x)   ((__be32)__builtin_bswap32((unsigned int)(x)))
 
#define be64_to_cpu(x)   ((__u64)__builtin_bswap64((unsigned long long)(x)))
 
#define cpu_to_be64(x)   ((__be64)__builtin_bswap64((unsigned long long)(x)))
 

Typedefs

typedef long long __kernel_long_t
 
typedef unsigned long long __kernel_ulong_t
 
typedef int pid_t
 
typedef size_t __kernel_size_t
 
typedef unsigned int uint
 
typedef void(* swap_r_func_t) (void *a, void *b, int size, const void *priv)
 
typedef void(* swap_func_t) (void *a, void *b, int size)
 
typedef int(* cmp_r_func_t) (const void *a, const void *b, const void *priv)
 
typedef int(* cmp_func_t) (const void *a, const void *b)
 

Macro Definition Documentation

◆ __LITTLE_ENDIAN

#define __LITTLE_ENDIAN   1234

◆ __PDP_ENDIAN

#define __PDP_ENDIAN   3412

◆ be16_to_cpu

#define be16_to_cpu (   x)    ((__u16)__builtin_bswap16((unsigned short)(x)))

◆ be32_to_cpu

#define be32_to_cpu (   x)    ((__u32)__builtin_bswap32((unsigned int)(x)))

◆ be64_to_cpu

#define be64_to_cpu (   x)    ((__u64)__builtin_bswap64((unsigned long long)(x)))

◆ cpu_to_be16

#define cpu_to_be16 (   x)    ((__be16)__builtin_bswap16((unsigned short)(x)))

◆ cpu_to_be32

#define cpu_to_be32 (   x)    ((__be32)__builtin_bswap32((unsigned int)(x)))

◆ cpu_to_be64

#define cpu_to_be64 (   x)    ((__be64)__builtin_bswap64((unsigned long long)(x)))

◆ cpu_to_le16

#define cpu_to_le16 (   x)    ((__le16)(__u16)(x))

◆ cpu_to_le32

#define cpu_to_le32 (   x)    ((__le32)(__u32)(x))

◆ cpu_to_le64

#define cpu_to_le64 (   x)    ((__le64)(__u64)(x))

◆ le16_to_cpu

#define le16_to_cpu (   x)    ((__u16)(x))

◆ le32_to_cpu

#define le32_to_cpu (   x)    ((__u32)(x))

◆ le64_to_cpu

#define le64_to_cpu (   x)    ((__u64)(x))

Typedef Documentation

◆ __kernel_long_t

typedef long long __kernel_long_t

◆ __kernel_size_t

◆ __kernel_ulong_t

typedef unsigned long long __kernel_ulong_t

◆ cmp_func_t

typedef int(* cmp_func_t) (const void *a, const void *b)

◆ cmp_r_func_t

typedef int(* cmp_r_func_t) (const void *a, const void *b, const void *priv)

◆ pid_t

typedef int pid_t

◆ swap_func_t

typedef void(* swap_func_t) (void *a, void *b, int size)

◆ swap_r_func_t

typedef void(* swap_r_func_t) (void *a, void *b, int size, const void *priv)

◆ uint

typedef unsigned int uint