English 中文(简体)
SpinLock改为_lock_irqsave signe
原标题:SpinLock read_lock_irqsave flags attribute

关于<代码> 避免锁定_irqsave(spinlock_t *lock, unsign longcodes);功能电话。 有人提到,先前的中断状态储存在旗帜中,我们可以通过将这种状态通过到<条码>上来恢复。

但是,我没有看到通过价值通过的旗帜在打上了先前的打断状态,而打上了<代码>spin_lock_irqsave。

最佳回答

<代码>spin_lock_irqsave是一个宏观而非功能。 因此,可以指定<代码>flags。 即便这显然具有价值。

见:

http://lxr.linux.no/#linux+v2.6.35.4/include/linux/spinlock.h#L312
http://lxr.linux.no/#linux+v2.6.35.4/include/linux/spinlock.h#L187

问题回答

暂无回答




相关问题
Local and remote data synchronisation

We have a local server with an access database which feeds data to clients in the same domain. Now we also have a website which is hosted externally, and working on a bridge system to provided upload/...

Write-though caching of large data sets in WCF?

We ve got a smart client that talks to a SQL Server database via WCF, displaying the entities in the database, and allowing the user to edit those entities. Some of the WCF calls return a large data ...

How are mutex and lock structures implemented?

I understand the concept of locks, mutex and other synchronization structures, but how are they implemented? Are they provided by the OS, or are these structures dependent on special CPU instructions ...

AutoResetEvent, ManualResetEvent vs Monitor

Lets say I have to orchestrate a synchronization algorithm in .Net 3.5 SP1 and any of the synchronization primitives listed in the title fit perfectly for the task. From a performance perspective, is ...

Synchronising SQL database through ADO.Net

The problem that i m having is how can i synchronise my datasets in my VS 2008 project to any changes in the database. As you know we read data from the db into the dataset which is disconnected, now ...

多线同步的明显模式? (C#)

我有两条镜子,指相同的变数——电离层和透镜。 因此,我在两条路口的24小时发言中总结了接触情况。 时间接近具有优先地位——......

热门标签