|
WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
|
#include <stdlib.h>#include <linux/spinlock.h>#include "osal_adapt.h"#include "td_type.h"#include "td_base.h"#include "osal_types.h"

结构体 | |
| struct | sk_buff_head |
| struct | sk_buff |
宏定义 | |
| #define | CHECKSUM_NONE 0 |
| #define | CHECKSUM_UNNECESSARY 1 |
| #define | CHECKSUM_COMPLETE 2 |
| #define | CHECKSUM_PARTIAL 3 |
| #define | L1_CACHE_BYTES (1 << 5) |
| #define | SMP_CACHE_BYTES L1_CACHE_BYTES |
| #define | skb_data_align(x) (((x) + (SMP_CACHE_BYTES - 1)) & ~(SMP_CACHE_BYTES - 1)) |
| #define | skb_truesize(x) ((x) + skb_data_align(sizeof(struct sk_buff))) |
| #define | NET_SKB_PAD 80 |
| #define | NUMA_NO_NODE (-1) |
| #define | USB_CACHE_ALIGN_SIZE 32 |
| #define | SKB_ALLOC_FCLONE 0x01 |
| #define | SKB_ALLOC_RX 0x02 |
| #define | oal_offsetof(type, member) ((long) &((type *) 0)->member) |
| #define | dev_kfree_skb_any(a) dev_kfree_skb(a) |
类型定义 | |
| typedef td_u32 | gfp_t |
| typedef td_u32 | sk_buff_data_t |
| typedef struct sk_buff | oal_netbuf_stru |
| typedef struct sk_buff_head | oal_netbuf_head_stru |
函数 | |
| td_void | skb_trim (struct sk_buff *skb, td_u32 len) |
| struct sk_buff * | skb_unshare (struct sk_buff *skb, td_u32 pri) |
| td_s32 | pskb_expand_head (struct sk_buff *skb, td_u32 nhead, td_u32 ntail, td_s32 gfp_mask) |
| struct sk_buff * | alloc_skb (td_u32 size) |
| struct sk_buff * | skb_dequeue (struct sk_buff_head *list) |
| td_void | skb_queue_tail (struct sk_buff_head *list, struct sk_buff *newsk) |
| td_void | dev_kfree_skb (struct sk_buff *skb) |
| struct sk_buff * | dev_alloc_skb (td_u32 length) |
| td_u8 * | skb_put (struct sk_buff *skb, td_u32 len) |
| #define CHECKSUM_COMPLETE 2 |
| #define CHECKSUM_NONE 0 |
| #define CHECKSUM_PARTIAL 3 |
| #define CHECKSUM_UNNECESSARY 1 |
| #define dev_kfree_skb_any | ( | a | ) | dev_kfree_skb(a) |
| #define L1_CACHE_BYTES (1 << 5) |
| #define NET_SKB_PAD 80 |
| #define NUMA_NO_NODE (-1) |
| #define SKB_ALLOC_FCLONE 0x01 |
| #define SKB_ALLOC_RX 0x02 |
| #define skb_data_align | ( | x | ) | (((x) + (SMP_CACHE_BYTES - 1)) & ~(SMP_CACHE_BYTES - 1)) |
| #define skb_truesize | ( | x | ) | ((x) + skb_data_align(sizeof(struct sk_buff))) |
| #define SMP_CACHE_BYTES L1_CACHE_BYTES |
| #define USB_CACHE_ALIGN_SIZE 32 |
| typedef struct sk_buff_head oal_netbuf_head_stru |
| typedef struct sk_buff oal_netbuf_stru |
| typedef td_u32 sk_buff_data_t |
| struct sk_buff * skb_dequeue | ( | struct sk_buff_head * | list | ) |
| td_void skb_queue_tail | ( | struct sk_buff_head * | list, |
| struct sk_buff * | newsk | ||
| ) |