Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - mbuf clone: (5 Items)
   
mbuf clone  
Hi,

Is there any function to get the clone of mbuf without copying entire
?

i need a clone of mbuf pointer alone.

Please help me on this.

Thanks and Regards
K.Senthil





RE: mbuf clone  

m_copy() will do this where it can.

-seanb

-----Original Message-----
From: Senthil K [mailto:community-noreply@qnx.com]
Sent: Sat 10/10/2009 9:20 AM
To: drivers-networking
Subject: mbuf clone
 
Hi,

Is there any function to get the clone of mbuf without copying entire
?

i need a clone of mbuf pointer alone.

Please help me on this.

Thanks and Regards
K.Senthil









_______________________________________________

Networking Drivers
http://community.qnx.com/sf/go/post39709


Attachment: Text winmail.dat 2.37 KB
Re: mbuf clone  
Hi sean,

It copies entire mbuf right?
but i need a clone of mbuf pointer alone not entire buffer.

REGARDS
SENTHIL




________________________________
From: Sean Boudreau <community-noreply@qnx.com>
To: drivers-networking <post39713@community.qnx.com>
Sent: Sun, October 11, 2009 12:57:42 AM
Subject: RE: mbuf clone



m_copy() will do this where it can.

-seanb

-----Original Message-----
From: Senthil K [mailto:community-noreply@qnx.com]
Sent: Sat 10/10/2009 9:20 AM
To: drivers-networking
Subject: mbuf clone

Hi,

Is there any function to get the clone of mbuf without copying entire
?

i need a clone of mbuf pointer alone.

Please help me on this.

Thanks and Regards
K.Senthil









_______________________________________________

Networking Drivers
http://community.qnx.com/sf/go/post39709






_______________________________________________

Networking Drivers
http://community.qnx.com/sf/go/post39713



      
RE: mbuf clone  
Not always.  If it has an external buffer it won't.
m_dup() always copies.

-seanb

if (m->m_flags & M_EXT) {
	if (!deep) {
		n->m_data = m->m_data + off;
		n->m_ext = m->m_ext;
		MCLADDREFERENCE(m, n);

-----Original Message-----
From: Senthil K [mailto:community-noreply@qnx.com]
Sent: Sun 10/11/2009 2:06 AM
To: drivers-networking
Subject: Re: mbuf clone
 
Hi sean,

It copies entire mbuf right?
but i need a clone of mbuf pointer alone not entire buffer.

REGARDS
SENTHIL




________________________________
From: Sean Boudreau <community-noreply@qnx.com>
To: drivers-networking <post39713@community.qnx.com>
Sent: Sun, October 11, 2009 12:57:42 AM
Subject: RE: mbuf clone



m_copy() will do this where it can.

-seanb

-----Original Message-----
From: Senthil K [mailto:community-noreply@qnx.com]
Sent: Sat 10/10/2009 9:20 AM
To: drivers-networking
Subject: mbuf clone

Hi,

Is there any function to get the clone of mbuf without copying entire
?

i need a clone of mbuf pointer alone.

Please help me on this.

Thanks and Regards
K.Senthil









_______________________________________________

Networking Drivers
http://community.qnx.com/sf/go/post39709






_______________________________________________

Networking Drivers
http://community.qnx.com/sf/go/post39713



      



_______________________________________________

Networking Drivers
http://community.qnx.com/sf/go/post39714


Attachment: Text winmail.dat 2.77 KB
Re: RE: mbuf clone  
Thanks a lot