From: Dave A. <ai...@us...> - 2003-06-10 01:48:30
|
Update of /cvsroot/linux-vax/kernel-2.4/Documentation/DocBook In directory sc8-pr-cvs1:/tmp/cvs-serv23180/Documentation/DocBook Modified Files: kernel-hacking.tmpl Log Message: DA: sync to Marcelo 2.4.18 + remove init_mmap (no longer needed) Index: kernel-hacking.tmpl =================================================================== RCS file: /cvsroot/linux-vax/kernel-2.4/Documentation/DocBook/kernel-hacking.tmpl,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- kernel-hacking.tmpl 9 Apr 2002 16:55:39 -0000 1.2 +++ kernel-hacking.tmpl 10 Jun 2003 01:45:44 -0000 1.3 @@ -18,8 +18,8 @@ </authorgroup> <copyright> - <year>2000</year> - <holder>Paul Russell</holder> + <year>2001</year> + <holder>Rusty Russell</holder> </copyright> <legalnotice> @@ -651,6 +651,29 @@ </para> </sect1> + <sect1 id="routines-endian"> + <title><function>cpu_to_be32()</function>/<function>be32_to_cpu()</function>/<function>cpu_to_le32()</function>/<function>le32_to_cpu()</function> + <filename class=headerfile>include/asm/byteorder.h</filename> + </title> + + <para> + The <function>cpu_to_be32()</function> family (where the "32" can + be replaced by 64 or 16, and the "be" can be replaced by "le") are + the general way to do endian conversions in the kernel: they + return the converted value. All variations supply the reverse as + well: <function>be32_to_cpu()</function>, etc. + </para> + + <para> + There are two major variations of these functions: the pointer + variation, such as <function>cpu_to_be32p()</function>, which take + a pointer to the given type, and return the converted value. The + other variation is the "in-situ" family, such as + <function>cpu_to_be32s()</function>, which convert value referred + to by the pointer, and return void. + </para> + </sect1> + <sect1 id="routines-local-irqs"> <title><function>local_irq_save()</function>/<function>local_irq_restore()</function> <filename class=headerfile>include/asm/system.h</filename> |