read from howto_add_systemcall
"In general, header files for machine architecture independent system calls and functions are kept under linux/include/linux/ and machine architecture dependent ones are kept in linux/include/asm/"
so what does asm stand for here?
I've searched wiki, but not found the answer.
Directory. As in other file systems, an ASM directory is a container for files, and it can be part of a tree structure of other directories. The fully qualified filename in fact represents a hierarchy of directories, with the plus sign (+) as the root.
asm-generic is a generic versions of functions usually coded in assembly, but coded in plain C, without any inline assembly. It's probably made for easy porting of the kernel to new platforms, and to keep platfom-independent common code in one place.
I guess it stands for Architecture Specific Macros (asm) initially. After that, any architecture specific stuff are placed there.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With