RE: m_dup
RE: m_dup
- Subject: RE: m_dup
- From: "Carl Smith" <email@hidden>
- Date: Sat, 16 Apr 2005 18:38:05 -0400
- Thread-topic: m_dup
Justin-
I was not attacking you directly I was more expressing my feelings and
thoughts, and yes we all have other duties and pressures and I am under
mine so I was getting frustrated at the same time.
With your communications I can see the discussion from your point.
Yes I would like to continue the m_dup, actually the whole Darwin/Apple
kernel code.
As what I could see in the m_dup source code, if the passed in mbuf,
that is to be duplicated is small then m_dup does a m_pkthdr on the
mbuf, then moves the data from the original mbuf to the resulting m_buf
from the return of m_pkthdr, if the passed in mbuf is large/chained, the
there is a while loop doing m_get until the data is all copied from the
passed in mbuf. Now my question arises that according to Stevens's book,
volume two, that m_get 'allocates an mbuf'. Now Stevens is basing all
his writing on BSD/Sun OS/AIX. When I look through the code,
documentation of the Darwin code, I can not find any reference to m_dup.
I do see comments that 'MGET' "allocates an mbuf and initializes it to
contain internal data". But as you even said, Apple took some time to
get this right, so I am assuming that Apple wrote there own version of
m_dup. I was just looking for confirmation that Darwin's m_dup behaves
the same as BSD's m_dup and if my assumption that m_dup will give me an
allocated\new mbuf, for me to do with as I see fit, is correct.
The Darwin/Apple question as whole then is, if Apple re-wrote the
kernel, does everything, work the same as BSD/Unix? If I read some
behavior from another UNIX book, i.e. Stevens, can I then assume
Darwin's api will behave exactly the same?
And I see I am not the only working on weekends?
I have stated in the past I much appreciate evens one help and comments
and I would like to extend again.
Carl
-----Original Message-----
From: macnetworkprog-bounces+csmith=email@hidden
[mailto:macnetworkprog-bounces+csmith=email@hidden]
On Behalf Of Justin Walker
Sent: Saturday, April 16, 2005 4:53 PM
To: macnetworkprog Programming
Subject: Re: m_dup
Hi, Carl,
Since I'm under attack here :-}, let me reply (without getting too deep
into philosophy):
On Apr 16, 2005, at 13:19, Carl Smith wrote:
> I really do not understand the dilemma and hostility here. I always
> assumed forums where a place where individuals of similar interests
> gathered to discuss there interest and or problems. In the case,
> programming in the Mac environment.
I don't think there is any hostility, nor is any intended. Your
assumptions about these lists are correct. Perhaps I should litter my
replies more punct-icons :-}
> I basically asked a simply question, now if it is too simplistic in
> nature to some, then I can understand just not taking the time to
> answer, or in other cases if someone does not have the answer, again
> they just do not need to answer.
If you feel your question had a simple answer, then we disagree. The
routine you are talking about is a bit involved, and took some time to
get right. Since you are going to use it, it behooves you to
understand it beforehand (at least, that's my feeling, and I'm the one
who's currently discussing it with you).
> It seems this m_dup issue is more of a personal attack to the effect
> of how I do my research and or learning, of the mac/unix environment.
I certainly wasn't attacking you. I wanted to get a feel for what you
had looked at, and what problems you had in understanding the code.
With that settled, it would be easier to complete the dialog.
> Is this forum not hosted and run by Mac/Apple? And also is not one of
> the formats of these lists/forums to help/encourage
> programmers/engineers to develop applications for the MAC OS?
Yes, it is hosted by Apple. The good folks who do that work have a lot
to do, in addition to this, and their job descriptions don't include
Adult Supervision. They'll get involved if things get out of hand,
either on-list or off-list. That they haven't should indicate
something to you.
You should not feel attacked, and you should be aware that email is a
problematic medium for expression, so it is important to dig into the
content of messages and be sure you understand intent before reacting
to it. Damn. I got into philosophy.
Enough of that. Back to your concerns about m_dup(): do you want to
continue the discussion?
Regards,
Justin
:-}
--
Justin C. Walker, Curmudgeon-At-Large
Institute for General Semantics
--------
It's not whether you win or lose...
It's whether *I* win or lose.
--------
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
ech.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden