Re: Is this normal or wrong?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@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

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux