摘要: 小小地跟踪下read函数,从ssize_t read(int fd, void *buf, size_t count)到DATASHEET一调到底,见证内核的分层模块化。--内核服务例程开始提供服务----fs/read_write.c--SYSCALL_DEFINE3(read, unsigned int, fd, char __user *, buf, size_t, count){ struct file *file; ssize_t ret = -EBADF; int fput_needed; file = fget_light(fd, &fput_needed... 阅读全文
posted @ 2013-11-26 15:31 HEYP 阅读(1050) 评论(0) 推荐(0) 编辑