Is this normal or wrong?

Prabhu nath gprabhunath at gmail.com
Tue Mar 12 09:23:49 EDT 2013


kmem_cache_alloc() is used to allocate a memory object from a respective
cache.
Can you elaborate on what is ur objective or can you get us how you have
invoked this function.

To my understanding kmem_cache_alloc() will just return a linear virtual
address (void *) of a memory object.
It would not initialize this memory. What you are seeing is a stale value
which is unwarranted in this context.

-- 
Regards,
Prabhunath G
Linux Trainer
Bangalore


On Thu, Mar 7, 2013 at 8:15 PM, ishare <june.tune.sea at gmail.com> wrote:

>
>   In init procedure ,I use kmem_cache_alloc to apply for memory to locate
> a inode struct.
>   it returns to me a inode whose i_dentry element cantain a struct
> list_head pointing to address 0x3,
>   Is the address within low momery resonable or illegal?
>
>   thanks!
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20130312/79d770d9/attachment.html 


More information about the Kernelnewbies mailing list