Voxia OS v0.0.1
Hobby Project Operating System Targeting x86-64
Loading...
Searching...
No Matches
type.h File Reference

Go to the source code of this file.

Data Structures

struct  atomic_t
 

Macros

#define NULL   0
 
#define nullptr   0
 
#define false   0
 
#define true   1
 
#define KERNEL_API    __attribute__((used, visibility("default"), section(".export")))
 
#define DEPRECATED
 
#define UNUSED(x)
 
#define offsetof(type, member)
 
#define container_of(ptr, type, member)
 

Typedefs

typedef unsigned char uint8_t
 
typedef unsigned short uint16_t
 
typedef unsigned int uint32_t
 
typedef unsigned long uint64_t
 
typedef signed char int8_t
 
typedef signed short int16_t
 
typedef signed int int32_t
 
typedef signed long int64_t
 
typedef unsigned long size_t
 
typedef signed long ptrdiff_t
 
typedef unsigned long uintptr_t
 
typedef uint8_t boolean_t
 

Macro Definition Documentation

◆ container_of

#define container_of ( ptr,
type,
member )
Value:
((type*) ((uintptr_t) (ptr) - offsetof(type, member)))
unsigned long uintptr_t
Definition type.h:73
#define offsetof(type, member)
Definition type.h:105
uint8_t type
Definition vnode.h:2
uint64_t ptr
Definition xhci.hpp:0

Definition at line 108 of file type.h.

Referenced by cache_lookup(), delete_dentry(), dentry_free_rcu(), print_dentry_tree(), and vfs_umount_recursive().

◆ DEPRECATED

#define DEPRECATED
Value:
__attribute__((deprecated("This function is deprecated and may be " \
"removed in future versions.")))
typedef __attribute__
Definition msi.c:47

Definition at line 96 of file type.h.

Referenced by __attribute__(), and __attribute__().

◆ false

#define false   0

Definition at line 84 of file type.h.

◆ KERNEL_API

#define KERNEL_API    __attribute__((used, visibility("default"), section(".export")))

◆ NULL

◆ nullptr

#define nullptr   0

Definition at line 77 of file type.h.

Referenced by Vector< T >::Vector().

◆ offsetof

#define offsetof ( type,
member )
Value:
((size_t) & (((type*) 0)->member))
unsigned long size_t
Definition type.h:55

Definition at line 105 of file type.h.

◆ true

#define true   1

Definition at line 85 of file type.h.

◆ UNUSED

#define UNUSED ( x)

Typedef Documentation

◆ boolean_t

typedef uint8_t boolean_t

Definition at line 89 of file type.h.

◆ int16_t

typedef signed short int16_t

Definition at line 37 of file type.h.

◆ int32_t

typedef signed int int32_t

Definition at line 43 of file type.h.

◆ int64_t

typedef signed long int64_t

Definition at line 49 of file type.h.

◆ int8_t

typedef signed char int8_t

Definition at line 31 of file type.h.

◆ ptrdiff_t

typedef signed long ptrdiff_t

Definition at line 61 of file type.h.

◆ size_t

typedef unsigned long size_t

Definition at line 55 of file type.h.

◆ uint16_t

typedef unsigned short uint16_t

Definition at line 13 of file type.h.

◆ uint32_t

typedef unsigned int uint32_t

Definition at line 19 of file type.h.

◆ uint64_t

typedef unsigned long uint64_t

Definition at line 25 of file type.h.

◆ uint8_t

typedef unsigned char uint8_t

Definition at line 7 of file type.h.

◆ uintptr_t

typedef unsigned long uintptr_t

Definition at line 73 of file type.h.