OXIESEC PANEL
- Current Dir:
/
/
usr
/
src
/
linux-headers-4.15.0-213
/
include
/
linux
/
unaligned
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
05/09/2024 07:14:16 AM
rwxr-xr-x
📄
access_ok.h
1.42 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
be_byteshift.h
1.43 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
be_memmove.h
809 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
be_struct.h
788 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
generic.h
2.12 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
le_byteshift.h
1.43 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
le_memmove.h
809 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
le_struct.h
788 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
memmove.h
868 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
packed_struct.h
1.04 KB
01/28/2018 09:20:33 PM
rw-r--r--
Editing: packed_struct.h
Close
#ifndef _LINUX_UNALIGNED_PACKED_STRUCT_H #define _LINUX_UNALIGNED_PACKED_STRUCT_H #include <linux/kernel.h> struct __una_u16 { u16 x; } __packed; struct __una_u32 { u32 x; } __packed; struct __una_u64 { u64 x; } __packed; static inline u16 __get_unaligned_cpu16(const void *p) { const struct __una_u16 *ptr = (const struct __una_u16 *)p; return ptr->x; } static inline u32 __get_unaligned_cpu32(const void *p) { const struct __una_u32 *ptr = (const struct __una_u32 *)p; return ptr->x; } static inline u64 __get_unaligned_cpu64(const void *p) { const struct __una_u64 *ptr = (const struct __una_u64 *)p; return ptr->x; } static inline void __put_unaligned_cpu16(u16 val, void *p) { struct __una_u16 *ptr = (struct __una_u16 *)p; ptr->x = val; } static inline void __put_unaligned_cpu32(u32 val, void *p) { struct __una_u32 *ptr = (struct __una_u32 *)p; ptr->x = val; } static inline void __put_unaligned_cpu64(u64 val, void *p) { struct __una_u64 *ptr = (struct __una_u64 *)p; ptr->x = val; } #endif /* _LINUX_UNALIGNED_PACKED_STRUCT_H */