btrfs.c.kerncompat

D translation of kerncompat.h from btrfs-progs (v5.9)

Members

Aliases

__be16
alias __be16 = u16
Undocumented in source.
__be16
alias __be16 = BigEndian!ushort
Undocumented in source.
__be32
alias __be32 = u32
Undocumented in source.
__be32
alias __be32 = BigEndian!uint
Undocumented in source.
__be64
alias __be64 = u64
Undocumented in source.
__be64
alias __be64 = BigEndian!ulong
Undocumented in source.
__le16
alias __le16 = u16
Undocumented in source.
__le16
alias __le16 = LittleEndian!ushort
Undocumented in source.
__le32
alias __le32 = u32
Undocumented in source.
__le32
alias __le32 = LittleEndian!uint
Undocumented in source.
__le64
alias __le64 = u64
Undocumented in source.
__le64
alias __le64 = LittleEndian!ulong
Undocumented in source.
__le8
alias __le8 = u8
Undocumented in source.
__s16
alias __s16 = s16
Undocumented in source.
__s32
alias __s32 = s32
Undocumented in source.
__s64
alias __s64 = s64
Undocumented in source.
__s8
alias __s8 = s8
Undocumented in source.
__u16
alias __u16 = u16
Undocumented in source.
__u32
alias __u32 = u32
Undocumented in source.
__u64
alias __u64 = u64
Undocumented in source.
__u8
alias __u8 = u8
Undocumented in source.
gfp_t
alias gfp_t = int
Undocumented in source.
kfree
alias kfree = free
Undocumented in source.
kvfree
alias kvfree = free
Undocumented in source.
kvzalloc
alias kvzalloc = kzalloc
Undocumented in source.
s16
alias s16 = short
Undocumented in source.
s32
alias s32 = int
Undocumented in source.
s64
alias s64 = long
Undocumented in source.
s8
alias s8 = byte
Undocumented in source.
u16
alias u16 = ushort
Undocumented in source.
u32
alias u32 = uint
Undocumented in source.
u64
alias u64 = ulong
Undocumented in source.
u8
alias u8 = ubyte
Undocumented in source.
vfree
alias vfree = free
Undocumented in source.
vmalloc
alias vmalloc = malloc
Undocumented in source.

Functions

ARRAY_SIZE
enum ARRAY_SIZE(T[n] x)
Undocumented in source. Be warned that the author may not have intended to support it.
BITOP_MASK
auto BITOP_MASK(T nr)
Undocumented in source. Be warned that the author may not have intended to support it.
BITOP_WORD
auto BITOP_WORD(T nr)
Undocumented in source. Be warned that the author may not have intended to support it.
ERR_PTR
void* ERR_PTR(c_long error)
Undocumented in source. Be warned that the author may not have intended to support it.
IS_ALIGNED
auto IS_ALIGNED(X x, A a)
Undocumented in source. Be warned that the author may not have intended to support it.
IS_ERR
c_int IS_ERR(void* ptr)
Undocumented in source. Be warned that the author may not have intended to support it.
IS_ERR_OR_NULL
c_int IS_ERR_OR_NULL(void* ptr)
Undocumented in source. Be warned that the author may not have intended to support it.
IS_ERR_VALUE
auto IS_ERR_VALUE(T x)
Undocumented in source. Be warned that the author may not have intended to support it.
PTR_ERR
c_long PTR_ERR(void* ptr)
Undocumented in source. Be warned that the author may not have intended to support it.
__clear_bit
void __clear_bit(int nr, c_ulong* addr)
Undocumented in source. Be warned that the author may not have intended to support it.
__get_cpu_var
auto __get_cpu_var(T p)
Undocumented in source. Be warned that the author may not have intended to support it.
__round_down
auto __round_down(X x, Y y)
Undocumented in source. Be warned that the author may not have intended to support it.
__round_mask
X __round_mask(X x, Y y)
Undocumented in source. Be warned that the author may not have intended to support it.
__round_up
auto __round_up(X x, Y y)
Undocumented in source. Be warned that the author may not have intended to support it.
__set_bit
void __set_bit(int nr, c_ulong* addr)

__set_bit - Set a bit in memory @nr: the bit to set @addr: the address to start counting from

__swap
void __swap(A a, B b)

__swap - swap values of @a and @b @a: first value @b: second value

cond_resched
void cond_resched()
Undocumented in source. Be warned that the author may not have intended to support it.
cpu_to_le16
__le16 cpu_to_le16(u16 x)
Undocumented in source. Be warned that the author may not have intended to support it.
cpu_to_le32
__le32 cpu_to_le32(u32 x)
Undocumented in source. Be warned that the author may not have intended to support it.
cpu_to_le64
__le64 cpu_to_le64(u64 x)
Undocumented in source. Be warned that the author may not have intended to support it.
cpu_to_le8
auto cpu_to_le8(V v)
Undocumented in source. Be warned that the author may not have intended to support it.
div_u64
auto div_u64(X x, Y y)
Undocumented in source. Be warned that the author may not have intended to support it.
get_cpu_var
auto get_cpu_var(T p)
Undocumented in source. Be warned that the author may not have intended to support it.
get_unaligned_16
auto get_unaligned_16(P p)
Undocumented in source. Be warned that the author may not have intended to support it.
get_unaligned_16
auto get_unaligned_16(P p)
Undocumented in source. Be warned that the author may not have intended to support it.
get_unaligned_32
auto get_unaligned_32(P p)
Undocumented in source. Be warned that the author may not have intended to support it.
get_unaligned_32
auto get_unaligned_32(P p)
Undocumented in source. Be warned that the author may not have intended to support it.
get_unaligned_64
auto get_unaligned_64(P p)
Undocumented in source. Be warned that the author may not have intended to support it.
get_unaligned_64
auto get_unaligned_64(P p)
Undocumented in source. Be warned that the author may not have intended to support it.
get_unaligned_8
auto get_unaligned_8(P p)
Undocumented in source. Be warned that the author may not have intended to support it.
get_unaligned_8
auto get_unaligned_8(P p)
Undocumented in source. Be warned that the author may not have intended to support it.
get_unaligned_le16
auto get_unaligned_le16(P p)
Undocumented in source. Be warned that the author may not have intended to support it.
get_unaligned_le16
auto get_unaligned_le16(P p)
Undocumented in source. Be warned that the author may not have intended to support it.
get_unaligned_le32
auto get_unaligned_le32(P p)
Undocumented in source. Be warned that the author may not have intended to support it.
get_unaligned_le32
auto get_unaligned_le32(P p)
Undocumented in source. Be warned that the author may not have intended to support it.
get_unaligned_le64
auto get_unaligned_le64(P p)
Undocumented in source. Be warned that the author may not have intended to support it.
get_unaligned_le64
auto get_unaligned_le64(P p)
Undocumented in source. Be warned that the author may not have intended to support it.
get_unaligned_le8
auto get_unaligned_le8(P p)
Undocumented in source. Be warned that the author may not have intended to support it.
get_unaligned_le8
auto get_unaligned_le8(P p)
Undocumented in source. Be warned that the author may not have intended to support it.
is_power_of_2
c_int is_power_of_2(c_ulong n)
Undocumented in source. Be warned that the author may not have intended to support it.
kmalloc
auto kmalloc(X x, Y y)
Undocumented in source. Be warned that the author may not have intended to support it.
kstrdup
auto kstrdup(X x, Y y)
Undocumented in source. Be warned that the author may not have intended to support it.
kzalloc
auto kzalloc(X x, Y y)
Undocumented in source. Be warned that the author may not have intended to support it.
le16_to_cpu
u16 le16_to_cpu(__le16 x)
Undocumented in source. Be warned that the author may not have intended to support it.
le32_to_cpu
u32 le32_to_cpu(__le32 x)
Undocumented in source. Be warned that the author may not have intended to support it.
le64_to_cpu
u64 le64_to_cpu(__le64 x)
Undocumented in source. Be warned that the author may not have intended to support it.
le8_to_cpu
auto le8_to_cpu(V v)
Undocumented in source. Be warned that the author may not have intended to support it.
memalloc_nofs_restore
void memalloc_nofs_restore(X x)
Undocumented in source. Be warned that the author may not have intended to support it.
memalloc_nofs_save
auto memalloc_nofs_save()
Undocumented in source. Be warned that the author may not have intended to support it.
mutex_init
void mutex_init(mutex* m)
Undocumented in source. Be warned that the author may not have intended to support it.
mutex_is_locked
int mutex_is_locked(mutex* m)
Undocumented in source. Be warned that the author may not have intended to support it.
mutex_lock
void mutex_lock(mutex* m)
Undocumented in source. Be warned that the author may not have intended to support it.
mutex_unlock
void mutex_unlock(mutex* m)
Undocumented in source. Be warned that the author may not have intended to support it.
preempt_disable
void preempt_disable()
Undocumented in source. Be warned that the author may not have intended to support it.
preempt_enable
void preempt_enable()
Undocumented in source. Be warned that the author may not have intended to support it.
printk
void printk(char* fmt, Args args)
Undocumented in source. Be warned that the author may not have intended to support it.
ptr_to_u64
auto ptr_to_u64(T x)
Undocumented in source. Be warned that the author may not have intended to support it.
put_unaligned_16
auto put_unaligned_16(Val val, P p)
Undocumented in source. Be warned that the author may not have intended to support it.
put_unaligned_16
auto put_unaligned_16(Val val, P p)
Undocumented in source. Be warned that the author may not have intended to support it.
put_unaligned_32
auto put_unaligned_32(Val val, P p)
Undocumented in source. Be warned that the author may not have intended to support it.
put_unaligned_32
auto put_unaligned_32(Val val, P p)
Undocumented in source. Be warned that the author may not have intended to support it.
put_unaligned_64
auto put_unaligned_64(Val val, P p)
Undocumented in source. Be warned that the author may not have intended to support it.
put_unaligned_64
auto put_unaligned_64(Val val, P p)
Undocumented in source. Be warned that the author may not have intended to support it.
put_unaligned_8
auto put_unaligned_8(Val val, P p)
Undocumented in source. Be warned that the author may not have intended to support it.
put_unaligned_8
auto put_unaligned_8(Val val, P p)
Undocumented in source. Be warned that the author may not have intended to support it.
put_unaligned_le16
auto put_unaligned_le16(Val val, P p)
Undocumented in source. Be warned that the author may not have intended to support it.
put_unaligned_le16
auto put_unaligned_le16(Val val, P p)
Undocumented in source. Be warned that the author may not have intended to support it.
put_unaligned_le32
auto put_unaligned_le32(Val val, P p)
Undocumented in source. Be warned that the author may not have intended to support it.
put_unaligned_le32
auto put_unaligned_le32(Val val, P p)
Undocumented in source. Be warned that the author may not have intended to support it.
put_unaligned_le64
auto put_unaligned_le64(Val val, P p)
Undocumented in source. Be warned that the author may not have intended to support it.
put_unaligned_le64
auto put_unaligned_le64(Val val, P p)
Undocumented in source. Be warned that the author may not have intended to support it.
put_unaligned_le8
auto put_unaligned_le8(Val val, P p)
Undocumented in source. Be warned that the author may not have intended to support it.
put_unaligned_le8
auto put_unaligned_le8(Val val, P p)
Undocumented in source. Be warned that the author may not have intended to support it.
test_bit
int test_bit(int nr, c_ulong* addr)

test_bit - Determine whether a bit is set @nr: bit number to test @addr: Address to start counting from

u64_to_ptr
auto u64_to_ptr(T x)
Undocumented in source. Be warned that the author may not have intended to support it.

Imports

ULONG_MAX (from core.stdc.limits)
public import core.stdc.limits : ULONG_MAX;
Undocumented in source.

Manifest constants

BITS_PER_BYTE
enum BITS_PER_BYTE;
Undocumented in source.
BITS_PER_LONG
enum BITS_PER_LONG;
Undocumented in source.
GFP_KERNEL
enum GFP_KERNEL;
Undocumented in source.
GFP_NOFS
enum GFP_NOFS;
Undocumented in source.
KERN_CRIT
enum KERN_CRIT;
Undocumented in source.
KERN_ERR
enum KERN_ERR;
Undocumented in source.
MAX_ERRNO
enum MAX_ERRNO;
Undocumented in source.
READ
enum READ;
Undocumented in source.
READA
enum READA;
Undocumented in source.
WRITE
enum WRITE;
Undocumented in source.
__GFP_BITS_MASK
enum __GFP_BITS_MASK;
Undocumented in source.
__GFP_BITS_SHIFT
enum __GFP_BITS_SHIFT;
Undocumented in source.

Structs

__una_le16
struct __una_le16
Undocumented in source.
__una_le32
struct __una_le32
Undocumented in source.
__una_le64
struct __una_le64
Undocumented in source.
__una_u16
struct __una_u16
Undocumented in source.
__una_u16
struct __una_u16
Undocumented in source.
__una_u32
struct __una_u32
Undocumented in source.
__una_u32
struct __una_u32
Undocumented in source.
__una_u64
struct __una_u64
Undocumented in source.
__una_u64
struct __una_u64
Undocumented in source.
mutex
struct mutex
Undocumented in source.
page
struct page
Undocumented in source.
vm_area_struct
struct vm_area_struct
Undocumented in source.
vma_shared
struct vma_shared
Undocumented in source.

Meta