diff options
author | Samuel Ortiz <sameo@linux.intel.com> | 2011-12-14 10:43:06 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-12-14 14:50:12 -0500 |
commit | 7c7cd3bfec68fee33b30d177df6a6a0c4bbdc59d (patch) | |
tree | 7b7332d63303d30c73b4ecd8a300e84d801baa33 /include/net/nfc/nfc.h | |
parent | 52858b51b2c779a8f9db32accf774b165522ad81 (diff) |
NFC: Add tx skb allocation routine
This is a factorization of the current rawsock tx skb allocation routine,
as it will be used by the LLCP code.
We also rename nfc_alloc_skb to nfc_alloc_recv_skb for consistency sake.
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include/net/nfc/nfc.h')
-rw-r--r-- | include/net/nfc/nfc.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/net/nfc/nfc.h b/include/net/nfc/nfc.h index 6a7f602aa841..3a3304c094d7 100644 --- a/include/net/nfc/nfc.h +++ b/include/net/nfc/nfc.h | |||
@@ -157,7 +157,10 @@ static inline const char *nfc_device_name(struct nfc_dev *dev) | |||
157 | return dev_name(&dev->dev); | 157 | return dev_name(&dev->dev); |
158 | } | 158 | } |
159 | 159 | ||
160 | struct sk_buff *nfc_alloc_skb(unsigned int size, gfp_t gfp); | 160 | struct sk_buff *nfc_alloc_send_skb(struct nfc_dev *dev, struct sock *sk, |
161 | unsigned int flags, unsigned int size, | ||
162 | unsigned int *err); | ||
163 | struct sk_buff *nfc_alloc_recv_skb(unsigned int size, gfp_t gfp); | ||
161 | 164 | ||
162 | int nfc_targets_found(struct nfc_dev *dev, struct nfc_target *targets, | 165 | int nfc_targets_found(struct nfc_dev *dev, struct nfc_target *targets, |
163 | int ntargets); | 166 | int ntargets); |