* Correction: 2.4 - can't open a custom char device file
@ 2004-04-02 16:30 Ron Gage
2004-04-02 17:04 ` Richard B. Johnson
0 siblings, 1 reply; 2+ messages in thread
From: Ron Gage @ 2004-04-02 16:30 UTC (permalink / raw)
To: linux-kernel
Previous message had the link wrong - sorry about that.
Try this: ftp://ftp.rongage.org/pub/pcmk/pcmk-v0.0.0.tar.gz
--
Ronald R. Gage
MCP, LPIC1, A+, Net+
Pontiac, Michigan
----------------------------------------------------------------
This message was sent using webmail provided by www.rongage.org
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Correction: 2.4 - can't open a custom char device file
2004-04-02 16:30 Correction: 2.4 - can't open a custom char device file Ron Gage
@ 2004-04-02 17:04 ` Richard B. Johnson
0 siblings, 0 replies; 2+ messages in thread
From: Richard B. Johnson @ 2004-04-02 17:04 UTC (permalink / raw)
To: Ron Gage; +Cc: linux-kernel
On Fri, 2 Apr 2004, Ron Gage wrote:
> Previous message had the link wrong - sorry about that.
>
> Try this: ftp://ftp.rongage.org/pub/pcmk/pcmk-v0.0.0.tar.gz
>
> --
> Ronald R. Gage
> MCP, LPIC1, A+, Net+
> Pontiac, Michigan
struct file_operations pcmk_fops requires the owner
initializer, i.e., THIS_MODULE.
At line 784, where do you get your open()? From the
'C' runtime library in user-space?
At line 791, where do you get your read() function?
>From the 'C' runtime library in user-space?
At line 802, where do you get your close() function?
Ditto.
The correct way to put the contents of files into
your driver is with a ioctl() control function that
gets data from user-space files and puts it into
the proper place(s) in your driver.
Cheers,
Dick Johnson
Penguin : Linux version 2.4.24 on an i686 machine (797.90 BogoMips).
Note 96.31% of all statistics are fiction.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-04-02 17:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-02 16:30 Correction: 2.4 - can't open a custom char device file Ron Gage
2004-04-02 17:04 ` Richard B. Johnson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®