函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:do_release

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

返回类型:int

参数:

类型参数名称
struct inode *inode
struct file *filp
1570  as等于 needed for tty driver, and maybe others
1571  如果check_apm_user(as, "release")则返回:0
1573  needed for tty driver, and maybe others = NULL
1574  如果standbys_pending大于0则
1575  standbys_pending减等于standbys_pending
1576  如果standbys_pending小于等于0则standby()
1579  如果suspends_pending大于0则
1580  suspends_pending减等于suspends_pending
1581  如果suspends_pending小于等于0则suspend(1)
1584  加自旋锁
1585  如果user_list恒等于asuser_list等于next
1587  否则
1590  以(as1 != NULL) && (next != as)循环如果(as1 == NULL)则
1595  打印错误信息("filp not in user list\n")
1596  否则next等于next
1599  自旋锁解锁
1600  释放内存
1601  返回:0