lkml.org 
[lkml]   [2004]   [Apr]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
Subject2.4.24 poll

Somebody who read about potential problems with poll() asked
me to pass this on. They had problems sending mail from yahoo.
It seems that couldn't disable something that gets interpreted
by vger as HTML.

From n26825@yahoo.com Fri Apr 9 15:47:05 2004
To: linux-kernel@vger.kernel.org
From: N26825 <n26825@yahoo.com>
Cc: "Johnson, Richard" <rjohnson@analogic.com>
Subject: Fwd: Linux version 2.4.24 poll


Subject: Linux version 2.4.24 poll

Gentlemen:

In a character device, if I open one with a MINOR number of
1, variable "minor" in the following driver snippet remains
0.

static size_t poll(struct file *fp, struct poll_table_struct
*wait)
{
int minor = MINOR(fp->f_dentry->d_inode->i_rdev);

If this is a feature, and not a bug, how am I supposed to
obtain
the minor number or do I have to use a block device?

Thanks,

Gloria

________________________________________________________________________________
Do you Yahoo!?
Yahoo! Small Business $15K Web Design Giveaway - Enter today

Richard B. Johnson
Project Engineer
Analogic Corporation
Penguin : Linux version 2.2.15 on an i586 machine (330.14 BogoMips).
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:02    [W:0.033 / U:0.104 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site