Release 4.12 include/linux/unaligned/packed_struct.h
#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;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Harvey Harrison | 31 | 100.00% | 1 | 100.00% |
Total | 31 | 100.00% | 1 | 100.00% |
static inline u32 __get_unaligned_cpu32(const void *p)
{
const struct __una_u32 *ptr = (const struct __una_u32 *)p;
return ptr->x;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Harvey Harrison | 31 | 100.00% | 1 | 100.00% |
Total | 31 | 100.00% | 1 | 100.00% |
static inline u64 __get_unaligned_cpu64(const void *p)
{
const struct __una_u64 *ptr = (const struct __una_u64 *)p;
return ptr->x;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Harvey Harrison | 31 | 100.00% | 1 | 100.00% |
Total | 31 | 100.00% | 1 | 100.00% |
static inline void __put_unaligned_cpu16(u16 val, void *p)
{
struct __una_u16 *ptr = (struct __una_u16 *)p;
ptr->x = val;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Harvey Harrison | 32 | 100.00% | 1 | 100.00% |
Total | 32 | 100.00% | 1 | 100.00% |
static inline void __put_unaligned_cpu32(u32 val, void *p)
{
struct __una_u32 *ptr = (struct __una_u32 *)p;
ptr->x = val;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Harvey Harrison | 32 | 100.00% | 1 | 100.00% |
Total | 32 | 100.00% | 1 | 100.00% |
static inline void __put_unaligned_cpu64(u64 val, void *p)
{
struct __una_u64 *ptr = (struct __una_u64 *)p;
ptr->x = val;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Harvey Harrison | 32 | 100.00% | 1 | 100.00% |
Total | 32 | 100.00% | 1 | 100.00% |
#endif /* _LINUX_UNALIGNED_PACKED_STRUCT_H */
Overall Contributors
Person | Tokens | Prop | Commits | CommitProp |
Harvey Harrison | 219 | 96.05% | 1 | 33.33% |
Will Newton | 6 | 2.63% | 1 | 33.33% |
Andrew Morton | 3 | 1.32% | 1 | 33.33% |
Total | 228 | 100.00% | 3 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.