Re: sys_init_module()

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

 



On Thu, Apr 25, 2002 at 09:13:19AM +0530, Neeraj wrote:
> 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.

-- 
http://immunix.org/

Attachment: pgp00069.pgp
Description: PGP signature


[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