Which function can allocate memory for a given structure type
Julian Elischer
julian at freebsd.org
Mon Dec 26 18:12:14 UTC 2011
On 12/26/11 8:44 AM, Rajneesh Kumar wrote:
> Hello sir/madam,
>
> Please help!
> I am trying to modify the ARP module. I want to know which function can
> allocate memory for a given structure type and return me back the same?
> e.g. I want to have declared a pointer of sockaddr_dl{} type. Now I want to
> allocate memory to it. How can I do it?
>
> Thank You!
for in-kernel resources, there is a special section (section 9) in
the freeBSD man pages..
in this case start with
man 9 malloc and fiollow teh "see also" links.
here's a link to get you started.
http://www.freebsd.org/cgi/man.cgi?query=malloc&sektion=9
More information about the freebsd-net
mailing list