~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/tools/include/linux/types.h

Version: ~ [ linux-5.4-rc3 ] ~ [ linux-5.3.6 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.79 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.149 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.196 ] ~ [ linux-4.8.17 ] ~ [ linux-4.7.10 ] ~ [ linux-4.6.7 ] ~ [ linux-4.5.7 ] ~ [ linux-4.4.196 ] ~ [ linux-4.3.6 ] ~ [ linux-4.2.8 ] ~ [ linux-4.1.52 ] ~ [ linux-4.0.9 ] ~ [ linux-3.19.8 ] ~ [ linux-3.18.140 ] ~ [ linux-3.17.8 ] ~ [ linux-3.16.75 ] ~ [ linux-3.15.10 ] ~ [ linux-3.14.79 ] ~ [ linux-3.13.11 ] ~ [ linux-3.12.74 ] ~ [ linux-3.11.10 ] ~ [ linux-3.10.108 ] ~ [ linux-3.9.11 ] ~ [ linux-3.8.13 ] ~ [ linux-3.7.10 ] ~ [ linux-3.6.11 ] ~ [ linux-3.5.7 ] ~ [ linux-3.4.113 ] ~ [ linux-3.3.8 ] ~ [ linux-3.2.102 ] ~ [ linux-3.1.10 ] ~ [ linux-3.0.101 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.5 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0 */
  2 #ifndef _TOOLS_LINUX_TYPES_H_
  3 #define _TOOLS_LINUX_TYPES_H_
  4 
  5 #include <stdbool.h>
  6 #include <stddef.h>
  7 #include <stdint.h>
  8 
  9 #define __SANE_USERSPACE_TYPES__        /* For PPC64, to get LL64 types */
 10 #include <asm/types.h>
 11 #include <asm/posix_types.h>
 12 
 13 struct page;
 14 struct kmem_cache;
 15 
 16 typedef enum {
 17         GFP_KERNEL,
 18         GFP_ATOMIC,
 19         __GFP_HIGHMEM,
 20         __GFP_HIGH
 21 } gfp_t;
 22 
 23 /*
 24  * We define u64 as uint64_t for every architecture
 25  * so that we can print it with "%"PRIx64 without getting warnings.
 26  *
 27  * typedef __u64 u64;
 28  * typedef __s64 s64;
 29  */
 30 typedef uint64_t u64;
 31 typedef int64_t s64;
 32 
 33 typedef __u32 u32;
 34 typedef __s32 s32;
 35 
 36 typedef __u16 u16;
 37 typedef __s16 s16;
 38 
 39 typedef __u8  u8;
 40 typedef __s8  s8;
 41 
 42 #ifdef __CHECKER__
 43 #define __bitwise__ __attribute__((bitwise))
 44 #else
 45 #define __bitwise__
 46 #endif
 47 #define __bitwise __bitwise__
 48 
 49 #define __force
 50 #define __user
 51 #define __must_check
 52 #define __cold
 53 
 54 typedef __u16 __bitwise __le16;
 55 typedef __u16 __bitwise __be16;
 56 typedef __u32 __bitwise __le32;
 57 typedef __u32 __bitwise __be32;
 58 typedef __u64 __bitwise __le64;
 59 typedef __u64 __bitwise __be64;
 60 
 61 typedef struct {
 62         int counter;
 63 } atomic_t;
 64 
 65 #ifndef __aligned_u64
 66 # define __aligned_u64 __u64 __attribute__((aligned(8)))
 67 #endif
 68 
 69 struct list_head {
 70         struct list_head *next, *prev;
 71 };
 72 
 73 struct hlist_head {
 74         struct hlist_node *first;
 75 };
 76 
 77 struct hlist_node {
 78         struct hlist_node *next, **pprev;
 79 };
 80 
 81 #endif /* _TOOLS_LINUX_TYPES_H_ */
 82 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | Wiki (Japanese) | Wiki (English) | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

osdn.jp