+/**
+ * Stores \a val at \a dst, where the latter is possibly unaligned. Uses
+ * memcpy(). This macro is needed to avoid dependency of user level tools on
+ * the kernel headers.
+ */
+#define STORE_UNALIGNED(val, dst) \
+({ \
+ typeof(*(dst)) __val = (val); \
+ \
+ memcpy(dst, &__val, sizeof *(dst)); \
+})
+