函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__up

函数原型:static noinline void __sched __up(struct semaphore *sem)

返回类型:void

参数:

类型参数名称
struct semaphore *sem
257  waiter等于list_first_entry - get the first element from a list*@ptr: the list head to take the element from.*@type: the type of the struct this is embedded in.*@member: the name of the list_head within the struct.* Note, that list is expected to be not empty.( & wait_list, structsemaphore_waiter, list)
259  删除链表项
260  up = true
261  唤醒中断线程
调用者
名称描述
upp - release the semaphore*@sem: the semaphore to release* Release the semaphore. Unlike mutexes, up() may be called from any* context and even by tasks which have never called down().