函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\apm_32.c Create Date:2022-07-27 09:22:28
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:do_open

函数原型:static int do_open(struct inode *inode, struct file *filp)

返回类型:int

参数:

类型参数名称
struct inode *inode
struct file *filp
1608  as等于开辟内存
1609  如果(as == NULL)则返回:负ENOMEM
1612  magic等于The magic number in apm_user
1613  event_tail等于event_head等于0
1614  suspends_pending等于standbys_pending等于0
1615  suspends_read等于standbys_read等于0
1623  suser等于操作权限检查
1624  writer等于f_mode按位与le is open for writing 的值恒等于le is open for writing
1625  reader等于f_mode按位与le is open for reading 的值恒等于le is open for reading
1626  加自旋锁
1627  next等于user_list
1628  user_list等于as
1629  自旋锁解锁
1630  needed for tty driver, and maybe others 等于as
1631  返回:0