All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kasper Dupont <kasperd@daimi.au.dk>
To: anil vijarnia <linux_ker@rediffmail.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: writing from kernel
Date: Sat, 04 Jan 2003 23:24:47 +0100	[thread overview]
Message-ID: <3E175F2F.F8C12CF@daimi.au.dk> (raw)
In-Reply-To: 20030104160255.6187.qmail@webmail28.rediffmail.com

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.

That is rarely a good idea. But if you insist on doing it anyway,
you could use filp_open and the methods in the returned struct.
I have an old code example here:

http://www.daimi.au.dk/~kasperd/linux_kernel/kcp.c

-- 
Kasper Dupont -- der bruger for meget tid på usenet.
For sending spam use mailto:aaarep@daimi.au.dk
for(_=52;_;(_%5)||(_/=5),(_%5)&&(_-=2))putchar(_);

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

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-04 16:02 writing from kernel anil  vijarnia
2003-01-04 16:27 ` Christian Vogel
2003-01-04 16:39 ` [PATCH] Root Raid Support for DAC960 Driver Richard Muratti
2003-01-04 22:24 ` Kasper Dupont [this message]
2003-01-05  0:26 ` writing from kernel Olaf Dietsche
  -- strict thread matches above, loose matches on Subject: below --
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=3E175F2F.F8C12CF@daimi.au.dk \
    --to=kasperd@daimi.au.dk \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux_ker@rediffmail.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.