Re: sys_init_module()

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

 



On Fri, Apr 26, 2002 at 08:48:03AM +0530, Neeraj wrote:

> 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" ? 

This is a reasonable question (in fact, I believe that offsetof() is
impossible to implement in a standards-compliant version according to
some versions of the C/C++ standards) but it's completely offtopic.

Please take the discussion to comp.lang.c or some other suitable forum.

thanks,
john

-- 
"I continue to be amazed at what Andrei can make templates do. Some of it
 still makes my head hurt."
	- Herb Sutter
--
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