ChinaUnix.net
相关文章推荐:

spin_lock_irqsave

本人在学习内核源代码内存模块(2。4。2)时,发现spin_lock有多种实现。 其中一种: #define DEBUG_spinlockS 0 /* 0 == no debugging, 1 == maintain lock state, 2 == full debug */ #if (DEBUG_spinlockS < 1) #define spin_lock(lock) (void)(lock) /* Not "unused variable". */ #elif (DEBUG_spinlockS < 2) #define spin_lock(x) do { (x)->;lock = 1; } while (0) #else /* (DEBUG_spinlockS >;= 2) */ #define s...

by mr_fanwei - 内核/嵌入技术 - 2004-07-14 13:38:34 阅读(1584) 回复(2)

相关讨论

我在读代码的时候,碰到spin_lock_irq,发现它用到了 spin_lock。请问是做什么用的阿?谢谢!

by dreamlynn - Linux论坛 - 2004-05-25 11:34:00 阅读(433) 回复(0)

spin lock held too long 请教是什么意思?

by miniqq - BSD - 2009-07-31 13:42:02 阅读(1745) 回复(1)

应用的场合可以确定没有recursive,而且是快进快出。 “non-recursive的pthread_mutex_t”和“pthread_spinlock_t”,在性能上有区别吗? linux 2.6.9 kernel.

by wwwsq - C/C++ - 2009-04-14 11:03:03 阅读(4237) 回复(1)

从新写一段清楚的代码 ipsec_rcv.c543行(freeswan中的文件) [code] if(tdbprev == NULL) { spin_lock(&tdb_lock); } #ifdef CONFIG_IPSEC_IPCOMP if (proto == IPPROTO_COMP) { unsigned int flags = 0; if (tdbp == NULL) { spin_unlock(&tdb_lock); KLIPS_PRINT(debug_rcv, "klips_debug:ipsec_rcv: " "Incoming packet with outer IPCOMP header SA:%s: not yet suppor...

by odin_free - C/C++ - 2003-05-08 18:11:54 阅读(1939) 回复(2)

Is anyone know how to prevent lock escalation? I got a lot of this kind of message in my notify log: 2007-06-03-06.55.43.019190 Instance:db2test Node:000 PID:1216710(db2agent (TEST) 0) TID:1 Appid:*LOCAL.db2test.070602225057 data management sqldEscalatelocks Probe:2 Database:TEST ADM5500W DB2 is performing lock escalation. The total number of locks currently held is "65564", and t...

by toms1981 - DB2 - 2007-06-06 20:42:01 阅读(5286) 回复(12)

mysql 中如何以独占的方式锁表,即锁表后,其它进程只能等待锁的释放才能访问

by yyiiasc - MySQL - 2007-05-17 18:59:47 阅读(1571) 回复(1)

使用select * from v$lock之后可看到如下信息: 请问各位高手,我怎么知道哪个是死锁?sid表示什么意思?如何kill掉这个 死锁? [ 本帖最后由 shaoxia 于 2005-12-22 10:16 编辑 ]

by shaoxia - Oracle - 2005-12-22 10:15:17 阅读(1097) 回复(0)

请教,如何设置锁等待的超时时间,如另一个事务锁住了某个表,当前事务等待锁,当到达超时时间后自动超时退出?有没有统一设置的方法,而不用每条语句都设置?

by river_wave - Oracle - 2003-12-03 10:12:57 阅读(2406) 回复(13)