summaryrefslogtreecommitdiffstats
path: root/include/linux/can/skb.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/can/skb.h')
-rw-r--r--include/linux/can/skb.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/can/skb.h b/include/linux/can/skb.h
index 4b0f24d3a87..2f0543f7510 100644
--- a/include/linux/can/skb.h
+++ b/include/linux/can/skb.h
@@ -32,4 +32,14 @@ struct can_skb_priv {
struct can_frame cf[0];
};
+static inline struct can_skb_priv *can_skb_prv(struct sk_buff *skb)
+{
+ return (struct can_skb_priv *)(skb->head);
+}
+
+static inline void can_skb_reserve(struct sk_buff *skb)
+{
+ skb_reserve(skb, sizeof(struct can_skb_priv));
+}
+
#endif /* CAN_SKB_H */