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 <[email protected]> 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 > [email protected] > http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies >
_______________________________________________ Kernelnewbies mailing list [email protected] http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
