Is my custom field added in page struct guaranteed zero when a page is allocated ?

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

 



hi,
I add a u64 field in struct page to record corresponding disk sector postion. I will change and read this field when dealing with page cache staff.
I want it stays zero unless my code change its value. Will the kernel 's allocating code guarantee that
the field is zero when the page is allocated? or Need I add some code to the allocating routine to explicitly fill the field with zero?

Regard,
Lingyu Zhu


_______________________________________________
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