函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\select.c Create Date:2022-07-29 10:37:00
Last Modify:2020-03-18 10:25:38 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Use "unsigned long" accesses to let user-mode fd_set's be long-aligned.

函数原型:static inline int get_fd_set(unsigned long nr, void __user *ufdset, unsigned long *fdset)

返回类型:int

参数:

类型参数名称
unsigned longnr
void __user *ufdset
unsigned long *fdset
391  nr等于FDS_BYTES(nr)
392  如果ufdset则返回:如果copy_from_user(fdset, ufdset, nr)则负EFAULT否则0
395  memset(fdset, 0, nr)
396  返回:0
调用者
名称描述
core_sys_selectWe can actually return ERESTARTSYS instead of EINTR, but I'd* like to be certain this leads to no problems. So I return* EINTR just for safety.* Update: ERESTARTSYS breaks at least the xview clock binary, so