poll源码分析--基于3.10.0-693.11.1
我们依然从函数调用开始分析,先分析poll的系统调用实现
SYSCALL_DEFINE3(poll, struct pollfd __user *, ufds, unsigned int, nfds,
int, timeout_msecs)
{
struct timespec end_time, *to = NULL;
int ret;
//如果传了超时时间,则在这里获取墙上时间
i...
原创
2018-10-07 12:54:53 ·
377 阅读 ·
0 评论