cregit-Linux how code gets into the kernel

Release 4.12 include/linux/unaligned/memmove.h

#ifndef _LINUX_UNALIGNED_MEMMOVE_H

#define _LINUX_UNALIGNED_MEMMOVE_H

#include <linux/kernel.h>
#include <linux/string.h>

/* Use memmove here, so gcc does not insert a __builtin_memcpy. */


static inline u16 __get_unaligned_memmove16(const void *p) { u16 tmp; memmove(&tmp, p, 2); return tmp; }

Contributors

PersonTokensPropCommitsCommitProp
Harvey Harrison28100.00%1100.00%
Total28100.00%1100.00%


static inline u32 __get_unaligned_memmove32(const void *p) { u32 tmp; memmove(&tmp, p, 4); return tmp; }

Contributors

PersonTokensPropCommitsCommitProp
Harvey Harrison28100.00%1100.00%
Total28100.00%1100.00%


static inline u64 __get_unaligned_memmove64(const void *p) { u64 tmp; memmove(&tmp, p, 8); return tmp; }

Contributors

PersonTokensPropCommitsCommitProp
Harvey Harrison28100.00%1100.00%
Total28100.00%1100.00%


static inline void __put_unaligned_memmove16(u16 val, void *p) { memmove(p, &val, 2); }

Contributors

PersonTokensPropCommitsCommitProp
Harvey Harrison24100.00%1100.00%
Total24100.00%1100.00%


static inline void __put_unaligned_memmove32(u32 val, void *p) { memmove(p, &val, 4); }

Contributors

PersonTokensPropCommitsCommitProp
Harvey Harrison24100.00%1100.00%
Total24100.00%1100.00%


static inline void __put_unaligned_memmove64(u64 val, void *p) { memmove(p, &val, 8); }

Contributors

PersonTokensPropCommitsCommitProp
Harvey Harrison24100.00%1100.00%
Total24100.00%1100.00%

#endif /* _LINUX_UNALIGNED_MEMMOVE_H */

Overall Contributors

PersonTokensPropCommitsCommitProp
Harvey Harrison172100.00%1100.00%
Total172100.00%1100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.