From: "Richard B. Johnson" <root@chaos.analogic.com>
To: Ron Gage <ron@rongage.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Correction: 2.4 - can't open a custom char device file
Date: Fri, 2 Apr 2004 12:04:00 -0500 (EST) [thread overview]
Message-ID: <Pine.LNX.4.53.0404021203290.32287@chaos> (raw)
In-Reply-To: <1080923435.406d952b2e786@webmail.rongage.org>
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.
prev parent reply other threads:[~2004-04-02 17:01 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-04-02 16:30 Ron Gage
2004-04-02 17:04 ` Richard B. Johnson [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.LNX.4.53.0404021203290.32287@chaos \
--to=root@chaos.analogic.com \
--cc=linux-kernel@vger.kernel.org \
--cc=ron@rongage.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®