Please let me know what is the trigger I need to provide from kernel after my string is put into tty->read_buf

The poll routine should return the correct poll mask. That should be enough.

What is the signal, select() or poll_wait() has to
receive from kernel so that application starts reading my charaters from tty->read_buf ?

AFAIK, the driver poll() routine should give the right poll flags.

So your poll will look like :

driver_poll()
   poll_wait(wait_queue, poll_table)
   return poll_mask

poll_wait() will add the current process to given wait_queue. To asynchronously signal some data ready condition, use something like wake_up_interruptible().

--Swapnil
--
______________________________________________________________________
Pune GNU/Linux Users Group Mailing List:      ([email protected])
List Information:  http://plug.org.in/mailing-list/listinfo/plug-mail
Send 'help' to [EMAIL PROTECTED] for mailing instructions.

Reply via email to