Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\apm_32.c Create Date:2022-07-28 08:22:32
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:do_release

Proto:static int do_release(struct inode *inode, struct file *filp)

Type:int

Parameter:

TypeParameterName
struct inode *inode
struct file *filp
1570  as = needed for tty driver, and maybe others
1571  If check_apm_user(as, "release") Then Return 0
1573  needed for tty driver, and maybe others = NULL
1574  If standbys_pending > 0 Then
1575  standbys_pending -= standbys_pending
1576  If standbys_pending <= 0 Then standby()
1579  If suspends_pending > 0 Then
1580  suspends_pending -= suspends_pending
1581  If suspends_pending <= 0 Then suspend(1)
1584  spin_lock( & user_list_lock)
1585  If user_list == as Then user_list = next
1587  Else
1590  When (as1 != NULL) && (next != as) cycle If (as1 == NULL) Then
1595  pr_err("filp not in user list\n")
1596  Else next = next
1599  spin_unlock( & user_list_lock)
1600  free previously allocated memory
1601  Return 0