kmem_cache_alloc() is used to allocate a memory object from a respective cache. <br>Can you elaborate on what is ur objective or can you get us how you have invoked this function. <br><br>To my understanding kmem_cache_alloc() will just return a linear virtual address (void *) of a memory object. <br>
It would not initialize this memory. What you are seeing is a stale value which is unwarranted in this context. <br><br>-- <br>Regards,<br>Prabhunath G<br>Linux Trainer<br>Bangalore<br><br><br><div class="gmail_quote">On Thu, Mar 7, 2013 at 8:15 PM, ishare <span dir="ltr"><<a href="mailto:june.tune.sea@gmail.com" target="_blank">june.tune.sea@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
In init procedure ,I use kmem_cache_alloc to apply for memory to locate a inode struct.<br>
it returns to me a inode whose i_dentry element cantain a struct list_head pointing to address 0x3,<br>
Is the address within low momery resonable or illegal?<br>
<br>
thanks!<br>
<br>
_______________________________________________<br>
Kernelnewbies mailing list<br>
<a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br>
<a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
</blockquote></div><br><br>