Re: sys_init_module()

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

 



=> > So, what would be your inference in the case of architectures where the null
=> > pointer is not designated by 0(zero) (lot of them are mentioned there on the
=> > C-faq page). What would then ((struct a *)0L)->field refer to and how will the
=> > compiler know that (null-pointer)->field is required to evaluate the offset of
=> > field in the structure "a" ? 
=> 
=> Part of porting the compiler to that architecture would involve
=> discovering what the NULL pointer looks like to the CPU, and knowing to
=> convert an integer 0 to the correct NULL pointer when used as a NULL
=> pointer.
=> 

Hi Arnold,
The question still remains:

What would then ((struct a *)0L)->field refer to and how will the compiler know
that (null-pointer)->field is required to evaluate the offset of field in the
structure "a" ? 

Thanks and Regards
-neeraj

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[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