bluetooth.h (65b7f6d740a6696974056251c98da0e99f956be8) | bluetooth.h (f5c4a42a7549cbc29dbac2b5ede05a3bc2bb4522) |
---|---|
1/* 2 BlueZ - Bluetooth protocol stack for Linux 3 Copyright (C) 2000-2001 Qualcomm Incorporated 4 5 Written 2000,2001 by Maxim Krasnyansky <maxk@qualcomm.com> 6 7 This program is free software; you can redistribute it and/or modify 8 it under the terms of the GNU General Public License version 2 as --- 302 unchanged lines hidden (view full) --- 311 __u8 incoming:1; 312 union { 313 struct l2cap_ctrl l2cap; 314 struct hci_ctrl hci; 315 }; 316}; 317#define bt_cb(skb) ((struct bt_skb_cb *)((skb)->cb)) 318 | 1/* 2 BlueZ - Bluetooth protocol stack for Linux 3 Copyright (C) 2000-2001 Qualcomm Incorporated 4 5 Written 2000,2001 by Maxim Krasnyansky <maxk@qualcomm.com> 6 7 This program is free software; you can redistribute it and/or modify 8 it under the terms of the GNU General Public License version 2 as --- 302 unchanged lines hidden (view full) --- 311 __u8 incoming:1; 312 union { 313 struct l2cap_ctrl l2cap; 314 struct hci_ctrl hci; 315 }; 316}; 317#define bt_cb(skb) ((struct bt_skb_cb *)((skb)->cb)) 318 |
319#define hci_skb_pkt_type(skb) bt_cb((skb))->pkt_type 320#define hci_skb_expect(skb) bt_cb((skb))->expect 321#define hci_skb_opcode(skb) bt_cb((skb))->hci.opcode 322 |
|
319static inline struct sk_buff *bt_skb_alloc(unsigned int len, gfp_t how) 320{ 321 struct sk_buff *skb; 322 323 skb = alloc_skb(len + BT_SKB_RESERVE, how); 324 if (skb) { 325 skb_reserve(skb, BT_SKB_RESERVE); 326 bt_cb(skb)->incoming = 0; --- 77 unchanged lines hidden --- | 323static inline struct sk_buff *bt_skb_alloc(unsigned int len, gfp_t how) 324{ 325 struct sk_buff *skb; 326 327 skb = alloc_skb(len + BT_SKB_RESERVE, how); 328 if (skb) { 329 skb_reserve(skb, BT_SKB_RESERVE); 330 bt_cb(skb)->incoming = 0; --- 77 unchanged lines hidden --- |