get_code_segment About Term project of Linux OS, 2021 fall @ NCU CSIE Target Add a system call to return some memory info of a process's code segment Note 1 asmlinkage 作用 __attribute__是C語言的gcc擴展,用來設置函數屬性、變數屬性和類型屬性等,可以幫助編譯器執行優化。 gccgnuorg/onlinedocs/gcc/x86-Function-Attributes