From mboxrd@z Thu Jan 1 00:00:00 1970 From: daniel.baluta@gmail.com (Daniel Baluta) Date: Wed, 22 Jun 2011 15:07:00 +0300 Subject: threading problem In-Reply-To: References: Message-ID: To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org Hello Murali, > I have a device driver which provides the IOCTL function for the > application to interact. > > when the application sends the IOCTL CMD_GO, my driver has to toggle a > GPIO every 500 m Sec. until a 3 minute timeout occurs or a CMD_STOP > IOCTL is received. > > I tried the DECLARE_WORK, DECLARE_DELAYED_WORK and also > kernel_thread() to meet this requirement with no success. > Could you please show us the code? thanks, Daniel.