Function report |
Source Code:arch\x86\kernel\apm_32.c |
Create Date:2022-07-28 08:22:31 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:do_ioctl
Proto:static long do_ioctl(struct file *filp, u_int cmd, u_long arg)
Type:long
Parameter:
Type | Parameter | Name |
---|---|---|
struct file * | filp | |
u_int | cmd | |
u_long | arg |
1524 | If check_apm_user(as, "ioctl") Then Return -EIO |
1529 | Case cmd == APM_IOC_STANDBY |
1530 | mutex_lock( & apm_mutex) |
1531 | If standbys_read > 0 Then |
1535 | Else queue_event(APM_USER_STANDBY, as) |
1537 | If standbys_pending <= 0 Then standby() |
1539 | mutex_unlock( & apm_mutex) |
1540 | Break |
1541 | Case cmd == APM_IOC_SUSPEND |
1542 | mutex_lock( & apm_mutex) |
1543 | If suspends_read > 0 Then |
1547 | Else queue_event(APM_USER_SUSPEND, as) |
1549 | If suspends_pending <= 0 Then |
1551 | mutex_unlock( & apm_mutex) |
1552 | Else |
1553 | suspend_wait = 1 |
1554 | mutex_unlock( & apm_mutex) |
1557 | ret = suspend_result |
1559 | Return ret |
1560 | Default |
1561 | Return -ENOTTY |
1563 | Return 0 |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |