I've been away for some time, and can't take up the lists just now. So if
this has already been discussed to death, sorry.
struct iovec;
extern int memcpy_fromiovec(unsigned char *kdata, struct iovec *iov, int len);
struct sk_buff {
unsigned int len;
unsigned char *tail;
unsigned char *end;
};
extern __inline__ unsigned char *skb_put(struct sk_buff *skb, unsigned int len)
{
unsigned char *tmp=skb->tail;
skb->tail+=len;
skb->len+=len;
if(skb->tail>skb->end)
{
__label__ here;
skb_over_panic(skb, len, &&here);
here: ;
}
return tmp;
}
static int unix_dgram_sendmsg(struct iovec *msg_iov, int len)
{
struct sk_buff *skb;
memcpy_fromiovec(skb_put(skb,len), msg_iov, len);
}
-- Horst von Brand vonbrand@sleipnir.valparaiso.cl Casilla 9G, Viņa del Mar, Chile +56 32 672616- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/