| Function report | 
| Source Code: ipc\sem.c | Create Date:2022-07-28 16:43:55 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:wake_const_ops - wake up non-alter tasks*@sma: semaphore array.*@semnum: semaphore that was modified.*@wake_q: lockless wake-queue head.* wake_const_ops must be called after a semaphore in a semaphore array* was set to 0
Proto:static int wake_const_ops(struct sem_array *sma, int semnum, struct wake_q_head *wake_q)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct sem_array * | sma | |
| int | semnum | |
| struct wake_q_head * | wake_q | 
| 840 | semop_completed = 0 | 
| 842 | If semnum == -1 Then pending_list = pending complex operations | 
| 844 | Else pending_list = pending single-sop operations | 
| 848 | error = perform_atomic_semop(sma, q) | 
| 850 | If error > 0 Then Continue | 
| 853 | unlink_queue(sma, q) | 
| 855 | wake_up_sem_queue_prepare(q, error, wake_q) | 
| 856 | If error == 0 Then semop_completed = 1 | 
| 860 | Return semop_completed | 
| Name | Describe | 
|---|---|
| do_smart_wakeup_zero | do_smart_wakeup_zero - wakeup all wait for zero tasks*@sma: semaphore array*@sops: operations that were performed*@nsops: number of operations*@wake_q: lockless wake-queue head* Checks all required queue for wait-for-zero operations, based | 
| 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 |