Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Hardware
User Name
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?


  Search this Thread
Old 09-30-2006, 11:23 PM   #1
Registered: Apr 2006
Posts: 30

Rep: Reputation: 15
Question poll_wait

it is some code related to poll implementation in linux device drivers.
unsigned int scull_p_poll(struct file *filp ,
poll_table *wait)

int mask ;
poll_wait(filp,&wait_queue1 ,wait);
poll_wait(filp ,&wait_queue2 ,wait);

if(readable) mask|=POLLIN | POLLRDNORM;


poll method is used to check whether a operation will succed before actually calling it .

So , what is the need for poll_wait() ? .
we have to check only condition for readability or writability and return corresponding mask .

what does poll_wait() realy do?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
poll_wait got_no_clue Linux - General 0 02-16-2006 09:35 AM
poll_wait related rupeshk73 Linux - Newbie 2 03-24-2005 07:12 PM > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 02:04 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration