函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:set_semotime - set sem_otime*@sma: semaphore array*@sops: operations that modified the array, may be NULL* sem_otime is replicated to avoid cache line trashing.* This function sets one instance to the current time.

函数原型:static void set_semotime(struct sem_array *sma, struct sembuf *sops)

返回类型:void

参数:

类型参数名称
struct sem_array *sma
struct sembuf *sops
988  如果(sops == NULL)则
989  candidate for sem_otime 等于ktime_get_real_seconds - Get the seconds portion of CLOCK_REALTIME* Returns the wall clock seconds since 1970. This replaces the* get_seconds() interface which is not y2038 safe on 32bit systems.
990  否则
991  candidate for sem_otime 等于ktime_get_real_seconds - Get the seconds portion of CLOCK_REALTIME* Returns the wall clock seconds since 1970. This replaces the* get_seconds() interface which is not y2038 safe on 32bit systems.
调用者
名称描述
do_smart_updatedo_smart_update - optimized update_queue*@sma: semaphore array*@sops: operations that were performed*@nsops: number of operations*@otime: force setting otime*@wake_q: lockless wake-queue head* do_smart_update() does the required calls to update_queue and
do_semtimedop