summaryrefslogtreecommitdiff
path: root/drivers/mmc/core/sd.c
diff options
context:
space:
mode:
authorShirley Ma <mashirle@us.ibm.com>2011-07-06 12:22:12 +0000
committerDavid S. Miller <davem@davemloft.net>2011-07-07 04:41:13 -0700
commita6686f2f382b13f8a7253401a66690c3633b6a74 (patch)
tree36a9a4546163a3c5b9a9ab3daa3b6bbe34af55aa /drivers/mmc/core/sd.c
parent1cdebb423202e255366a321814fc6df079802a0d (diff)
downloadlinux-a6686f2f382b13f8a7253401a66690c3633b6a74.tar.gz
skbuff: skb supports zero-copy buffers
This patch adds userspace buffers support in skb shared info. A new struct skb_ubuf_info is needed to maintain the userspace buffers argument and index, a callback is used to notify userspace to release the buffers once lower device has done DMA (Last reference to that skb has gone). If there is any userspace apps to reference these userspace buffers, then these userspaces buffers will be copied into kernel. This way we can prevent userspace apps from holding these userspace buffers too long. Use destructor_arg to point to the userspace buffer info; a new tx flags SKBTX_DEV_ZEROCOPY is added for zero-copy buffer check. Signed-off-by: Shirley Ma <xma@...ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/mmc/core/sd.c')
0 files changed, 0 insertions, 0 deletions