亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? semaphore.c

?? 該文件是rt_linux
?? C
字號:
/* *  Generic semaphore code. Buyer beware. Do your own * specific changes in <asm/semaphore-helper.h> */#include <linux/sched.h>#include <asm/semaphore-helper.h>/* * Semaphores are implemented using a two-way counter: * The "count" variable is decremented for each process * that tries to sleep, while the "waking" variable is * incremented when the "up()" code goes to wake up waiting * processes. * * Notably, the inline "up()" and "down()" functions can * efficiently test if they need to do any extra work (up * needs to do something only if count was negative before * the increment operation. * * waking_non_zero() (from asm/semaphore.h) must execute * atomically. * * When __up() is called, the count was negative before * incrementing it, and we need to wake up somebody. * * This routine adds one to the count of processes that need to * wake up and exit.  ALL waiting processes actually wake up but * only the one that gets to the "waking" field first will gate * through and acquire the semaphore.  The others will go back * to sleep. * * Note that these functions are only called when there is * contention on the lock, and as such all this is the * "non-critical" part of the whole semaphore business. The * critical part is the inline stuff in <asm/semaphore.h> * where we want to avoid any extra jumps and calls. */void __up(struct semaphore *sem){	wake_one_more(sem);	wake_up(&sem->wait);}/* * Perform the "down" function.  Return zero for semaphore acquired, * return negative for signalled out of the function. * * If called from __down, the return is ignored and the wait loop is * not interruptible.  This means that a task waiting on a semaphore * using "down()" cannot be killed until someone does an "up()" on * the semaphore. * * If called from __down_interruptible, the return value gets checked * upon return.  If the return value is negative then the task continues * with the negative value in the return register (it can be tested by * the caller). * * Either form may be used in conjunction with "up()". * */#define DOWN_VAR				\	struct task_struct *tsk = current;	\	wait_queue_t wait;			\	init_waitqueue_entry(&wait, tsk);#define DOWN_HEAD(task_state)						\									\									\	tsk->state = (task_state);					\	add_wait_queue(&sem->wait, &wait);				\									\	/*								\	 * Ok, we're set up.  sem->count is known to be less than zero	\	 * so we must wait.						\	 *								\	 * We can let go the lock for purposes of waiting.		\	 * We re-acquire it after awaking so as to protect		\	 * all semaphore operations.					\	 *								\	 * If "up()" is called before we call waking_non_zero() then	\	 * we will catch it right away.  If it is called later then	\	 * we will have to go through a wakeup cycle to catch it.	\	 *								\	 * Multiple waiters contend for the semaphore lock to see	\	 * who gets to gate through and who has to wait some more.	\	 */								\	for (;;) {#define DOWN_TAIL(task_state)			\		tsk->state = (task_state);	\	}					\	tsk->state = TASK_RUNNING;		\	remove_wait_queue(&sem->wait, &wait);void __down(struct semaphore * sem){	DOWN_VAR	DOWN_HEAD(TASK_UNINTERRUPTIBLE)	if (waking_non_zero(sem))		break;	schedule();	DOWN_TAIL(TASK_UNINTERRUPTIBLE)}int __down_interruptible(struct semaphore * sem){	int ret = 0;	DOWN_VAR	DOWN_HEAD(TASK_INTERRUPTIBLE)	ret = waking_non_zero_interruptible(sem, tsk);	if (ret)	{		if (ret == 1)			/* ret != 0 only if we get interrupted -arca */			ret = 0;		break;	}	schedule();	DOWN_TAIL(TASK_INTERRUPTIBLE)	return ret;}int __down_trylock(struct semaphore * sem){	return waking_non_zero_trylock(sem);}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
激情文学综合插| 午夜精品久久久久| 大白屁股一区二区视频| 国产欧美日韩另类视频免费观看| 精品一区二区三区日韩| 欧美激情综合五月色丁香小说| 粉嫩绯色av一区二区在线观看 | 国产亚洲欧美在线| 岛国一区二区在线观看| 国产精品久久久久久久久免费相片| 成人av电影在线网| 亚洲午夜免费福利视频| 日韩一区二区三区精品视频| 国产一区二区三区在线观看精品| 国产亚洲一区字幕| 日本电影亚洲天堂一区| 喷白浆一区二区| 国产精品不卡视频| 欧美日韩亚洲不卡| 国产一区在线精品| 一区二区免费看| 精品国产一区二区三区忘忧草 | 日韩黄色在线观看| 久久久久高清精品| 91蝌蚪porny九色| 日韩av在线播放中文字幕| 久久天堂av综合合色蜜桃网| 91视频在线看| 久久国产精品露脸对白| 亚洲视频精选在线| www激情久久| 91久久线看在观草草青青| 精品一区精品二区高清| 亚洲欧洲综合另类| 精品国产一区二区三区久久久蜜月 | 91精品欧美久久久久久动漫| 高清视频一区二区| 丝袜诱惑亚洲看片 | 亚洲欧美另类综合偷拍| 欧美大片免费久久精品三p| 91老司机福利 在线| 精品写真视频在线观看| 亚洲成人av电影在线| 中文字幕一区二区三区av| 精品免费国产一区二区三区四区| 日本精品视频一区二区| 国产精品综合视频| 久久电影网站中文字幕| 亚洲一二三级电影| 国产精品护士白丝一区av| 欧美tk—视频vk| 7777精品久久久大香线蕉| 一本大道久久a久久精二百| 国产福利91精品一区二区三区| 天天亚洲美女在线视频| 亚洲免费资源在线播放| 国产精品久久久久久久久动漫| 日韩欧美视频一区| 欧美一区二区女人| 欧美久久久久久久久| 在线日韩av片| 91色.com| 99精品视频一区| 成人自拍视频在线| 国产福利一区二区三区视频 | 51精品秘密在线观看| 在线免费观看不卡av| 99久久久精品免费观看国产蜜| 国产福利不卡视频| 懂色中文一区二区在线播放| 国产一区91精品张津瑜| 黄色成人免费在线| 国内国产精品久久| 国产精品一级片在线观看| 久久99日本精品| 久久不见久久见中文字幕免费| 人妖欧美一区二区| 九色porny丨国产精品| 美女视频一区在线观看| 日韩二区三区四区| 久久国产精品色婷婷| 国内成人免费视频| 国产精品一区二区久久不卡| 国产一区二区三区四区五区入口| 韩国理伦片一区二区三区在线播放| 九色porny丨国产精品| 理论电影国产精品| 国产一区 二区| 丁香桃色午夜亚洲一区二区三区| av资源站一区| 在线不卡一区二区| 欧美三级视频在线| 日韩美女视频在线| 久久日一线二线三线suv| 国产日本一区二区| 亚洲精品伦理在线| 亚洲国产精品一区二区尤物区| 五月开心婷婷久久| 久久国产视频网| 不卡电影一区二区三区| 欧美性色aⅴ视频一区日韩精品| 欧美三级中文字| 日韩美女天天操| 国产精品色哟哟网站| 亚洲亚洲人成综合网络| 久久成人羞羞网站| 成人黄色一级视频| 欧美区视频在线观看| 久久久不卡网国产精品一区| 亚洲色图制服诱惑 | 亚洲精品久久嫩草网站秘色| 日韩中文字幕1| 国产91精品入口| 欧美日韩中文字幕精品| 精品91自产拍在线观看一区| 国产精品久久久久影院| 调教+趴+乳夹+国产+精品| 国产一区二区三区免费看| 在线精品观看国产| 国产日韩精品久久久| 亚洲自拍都市欧美小说| 狂野欧美性猛交blacked| 972aa.com艺术欧美| 欧美一区二区三区在| 国产精品久久福利| 毛片一区二区三区| 一本久道久久综合中文字幕 | 国产精品视频一区二区三区不卡| 一区二区三区日韩精品| 国产一二精品视频| 在线观看91av| 亚洲激情五月婷婷| 国产风韵犹存在线视精品| 欧美日本一区二区三区四区| 欧美国产日韩一二三区| 日本va欧美va精品| 欧美在线观看一二区| 国产精品无圣光一区二区| 麻豆成人av在线| 欧美高清激情brazzers| 一区精品在线播放| 黄色日韩网站视频| 日韩午夜激情免费电影| 亚洲国产精品久久不卡毛片| 99久久伊人精品| 久久九九影视网| 麻豆久久久久久| 91精品国产乱码| 亚洲v精品v日韩v欧美v专区| 国产成人免费在线| 欧美电视剧免费观看| 日韩电影在线免费| 欧美日产在线观看| 亚洲国产视频直播| 欧美系列亚洲系列| 亚洲黄一区二区三区| 成人午夜精品一区二区三区| 精品国产亚洲在线| 麻豆精品一区二区av白丝在线 | 欧美一区二区三区婷婷月色| 一区二区三区av电影| 99re成人精品视频| 久久av中文字幕片| 欧美精品一卡二卡| 亚洲电影第三页| 7777女厕盗摄久久久| 爽好久久久欧美精品| 欧美挠脚心视频网站| 性做久久久久久免费观看欧美| 欧美日韩国产高清一区二区三区| 亚洲二区在线观看| 欧美精品99久久久**| 日韩精彩视频在线观看| 欧美一区二区美女| 久久99久久久欧美国产| 精品美女在线观看| 国产1区2区3区精品美女| 国产精品二三区| 91色在线porny| 亚洲国产精品久久人人爱蜜臀 | 亚洲精品一区二区三区影院| 蜜桃视频第一区免费观看| 精品国产区一区| 国产91精品久久久久久久网曝门 | 中文字幕在线免费不卡| 色婷婷一区二区三区四区| 图片区日韩欧美亚洲| 精品久久久久香蕉网| 国产一区不卡视频| 日韩理论片中文av| 欧美精品三级日韩久久| 麻豆91在线观看| 中文字幕一区在线观看视频| 色嗨嗨av一区二区三区| 亚洲成人动漫在线免费观看| 精品成人一区二区三区| 粉嫩aⅴ一区二区三区四区五区| 一二三区精品视频| 精品国产亚洲在线| 在线看日韩精品电影|