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@xxxxxxxxx> 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@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@xxxxxxxxxxxxxxxxx http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies