19 Mar
2006
19 Mar
'06
20:45
On Sunday 19 March 2006 21:36, Pierre Patino wrote:
Greeting
I've got a kernel module that contains something like this:
while(loop) {
take semaphore A
do some I/O on the PCI bus
give semaphore A
}
So between the give and the take there are basically two instructions, one cmp and one jne, and in those two you expect the kernel to give execution to something else that wants the semaphore I think you need to put a sleep, or a shed_yield or something in there, otherwise odds are your loop is going to hold that semaphore forever -- Certified: Yes. Certifiable: of course! jabber ID: anders@rydsbo.net