Re: How is NULL pointer dereference handled inside kernel?

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

 



On Thu, 18 Nov 2004 10:44:44 +0530, Kishore A K <kishoreak@xxxxxxxxx> wrote:
> NULL == 0 in all currently known architectures while coding in
> C. And I think NULL == (void *)0 if you code in C++. Infact in
> many places in the linux kernel source NULL & 0 have been used
> interchangably.

I suppose if it's consistent in every file, it probably isn't a big
deal, but it seems like it might be a good idea to be consistent
across the kernel. CodingStyle has no recommendation on this
particular issue. What do people think? Kishore, could you provide a
specific example?

-Nish

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