Date: Mon, 26 Dec 2011 10:12:47 -0800 From: Julian Elischer <julian@freebsd.org> To: Rajneesh Kumar <iwc2010005@gmail.com> Cc: freebsd-net@freebsd.org Subject: Re: Which function can allocate memory for a given structure type Message-ID: <4EF8B91F.5040807@freebsd.org> In-Reply-To: <CA%2BDF=vzeKK4CJYFgikfV4jAFpHf6iZ2fxcf5bPZMSM4Gd67G8Q@mail.gmail.com> References: <CA%2BDF=vzeKK4CJYFgikfV4jAFpHf6iZ2fxcf5bPZMSM4Gd67G8Q@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4EF8B91F.5040807>