Re: underscores and function names

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

 




The ones with underscores usually have matching functions withOUT underscores. They are meant to be private calls.


The ones without underscores usually call the one with underscores, and these are the ones that actually do the work.

The kernel will sometimes call the underscore'd functions directly because it knows what it's doing.......

But while programming, we should generally call the ones without them.

At 02:06 PM 1/2/2005, brian@xxxxxxxxxxxxx wrote:
Hello,

Many functions in the kernel are prepended with an underscore, and some
have two underscores.  Can somebody explain this convention?

Thanks,
Brian


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

/*********************************/ Michael R. Hines Grad Student, Florida State Dept. Computer Science http://www.cs.fsu.edu/~mhines/ Jusqu'à ce que le futur vienne... /*********************************/


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