Is linux kernel list.h thread safe?

Is linux kernel list.h thread safe?

+5
source share
2 answers

No, the structure list_headdoes not contain blocking, and operations are by no means atomic.

You can see it for yourself here , there are no references to locking mechanisms, etc.

+7
source

Just read the implementation; the answer is clearly NO in the presence of writers. (Multiple readers on immutable data are safe.)

RCU LWN, . , , .

+6

All Articles