mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Christian Vogel <vogel@skunk.physik.uni-erlangen.de>
To: linux-kernel@vger.kernel.org
Subject: Re: writing from kernel
Date: Sat, 4 Jan 2003 17:27:11 +0100	[thread overview]
Message-ID: <20030104172711.A20363@skunk.physik.uni-erlangen.de> (raw)
In-Reply-To: <20030104160255.6187.qmail@webmail28.rediffmail.com>; from linux_ker@rediffmail.com on Sat, Jan 04, 2003 at 04:02:55PM -0000

Hi,

On Sat, Jan 04, 2003 at 04:02:55PM -0000, anil  vijarnia wrote:
> can anyone tell me how to write into i file from kernel space.
> i tried sys_open,sys_write functions bbbbbut they don't work
>  from my module.

As far as I understand the general oppinion on this list :-) the
preferred method is to have your module preset a character-device
to userspace. Then use a small program to do the I/O.

This normally keeps your kernel module simple and allows for
arbitrary compex I/O in userspace.

        Chris

-- 
No keyboard present
Hit F1 to continue
Zen engineering?
-- Jim Griffith

  reply	other threads:[~2003-01-04 16:18 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-04 16:02 anil  vijarnia
2003-01-04 16:27 ` Christian Vogel [this message]
2003-01-04 16:39 ` [PATCH] Root Raid Support for DAC960 Driver Richard Muratti
2003-01-04 22:24 ` writing from kernel Kasper Dupont
2003-01-05  0:26 ` Olaf Dietsche
2003-01-04 16:05 anil  vijarnia
2003-01-04 16:11 anil  vijarnia

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=20030104172711.A20363@skunk.physik.uni-erlangen.de \
    --to=vogel@skunk.physik.uni-erlangen.de \
    --cc=linux-kernel@vger.kernel.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®