摘要:
这几天一直在忙别的事,完事了,看了点文件系统相关的部分,就看看 read 在内核里面的实现 这是大概的函数调用链,但是我不会一个一个全部去分析,我只看主要的 man 手册描述 via:https://man7.org/linux/man-pages/man2/read.2.html NAME rea 阅读全文
摘要:
Linux内核源码分析 -- 同步原语 -- 互斥锁 mutex /* * Simple, straightforward mutexes with strict semantics: * * - only one task can hold the mutex at a time (同一时间仅能被 阅读全文
摘要:
Linux 内核源码分析 -- getuid,geteuid getuid 获取用户标识号 via:https://man7.org/linux/man-pages/man2/geteuid.2.html returns the real user ID of the calling process 阅读全文