Re: sleepq problem

2012-12-05 Thread Andriy Gapon
on 05/12/2012 17:55 Alexandr Matveev said the following: > Hello, > > I'm writing a storage controller driver for 9.0-RELEASE-p4 and i'm using > sleepq at initialization to sleep until command is processed by controller: > > struct command { > <...> > uint8_tdone; > }; > > void send_

sleepq problem

2012-12-05 Thread Alexandr Matveev
Hello, I'm writing a storage controller driver for 9.0-RELEASE-p4 and i'm using sleepq at initialization to sleep until command is processed by controller: struct command { <...> uint8_tdone; }; void send_command_and_wait(struct command *cmd) { command->done = 0; send_comman