LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   malloc_usable_space() function (https://www.linuxquestions.org/questions/linux-newbie-8/malloc_usable_space-function-589825/)

shogun1234 10-06-2007 01:51 AM

malloc_usable_space() function
 
I read an article (http://www.linuxjournal.com/article/4681), talking about memory issue. It refers to one function, named `malloc_usable_space()' which can report the usage of a memory. However, whilst checking the man page or looking up on the internet, I can not find any usage or synopsis on this function. Some pages simply refer to the name of this function only.

My problem is how to use to function? What is it usage?

Thank you very much.

orgcandman 10-06-2007 01:30 PM

My guess is that it was removed a while back. The date on that article is 2001, which is 6 years ago, and I can find it in any libraries on my system.

you could probably hook skb and mmap to look for how much allocation space the malloc really is taking. Is there any reason that you care what the header size is?

-Aaron


All times are GMT -5. The time now is 02:38 AM.