Loading ...
Sorry, an error occurred while loading the content.

select/poll

Expand Messages
  • jyothimshetty
    hi, i am writing dummy driver which consists of open, close, ioctls(read, write) and poll. in user side whenever i will call ioctl write, i am making
    Message 1 of 1 , Apr 29 11:59 PM
    • 0 Attachment
      hi,

      i am writing dummy driver which consists of open, close,
      ioctls(read, write) and poll.

      in user side whenever i will call ioctl write, i am making
      wake_up_interruptible(waitQueue) in kernel module.

      in poll i am using poll_wait(filp, &dummyData->waitQueue, wait);

      and in user app i am calling

      select( sldFd + 1, &readFd, NULL, NULL, &tv);

      the problem is if i am making 10 writes i am getting more number of
      events.

      help me out

      bye
      jyothi
    Your message has been successfully submitted and would be delivered to recipients shortly.