mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Helge Hafting <helgehaf@aitel.hist.no>
To: so usp <so_usp@yahoo.com.br>
Cc: linux-kernel@vger.kernel.org
Subject: Re: returning text from a system call
Date: Tue, 22 Jun 2004 10:50:40 +0200	[thread overview]
Message-ID: <20040622085040.GA31276@hh.idb.hist.no> (raw)
In-Reply-To: <20040621202702.91926.qmail@web90107.mail.scd.yahoo.com>

On Mon, Jun 21, 2004 at 05:27:02PM -0300, so usp wrote:
> Hi,
> 
> I'm implementing a system call, and I want to return
> information (text data) to the user without using the
> /var/log/messages (using the printk function). I've
> been thinking about writing in a file, but I really
> don't know how to manipulate files in kernel mode. The
> text could be returned to the command line as well,
> but I either don't know how to do that. Does anybody
> could help me how to return text (both ways would be
> good) from a system call?
> 

What is it you want to do exactly? What kind of text?

Consider making a device driver - a device driver
can return text to the program reading from the device.

If that doesn't fit your needs, consider creating a file
in /proc.



Helge Hafting

  reply	other threads:[~2004-06-22  8:47 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-21 20:27 so usp
2004-06-22  8:50 ` Helge Hafting [this message]
     [not found] <fa.ln13q27.174i3bp@ifi.uio.no>
2004-06-23  2:49 ` Robert Hancock

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=20040622085040.GA31276@hh.idb.hist.no \
    --to=helgehaf@aitel.hist.no \
    --cc=linux-kernel@vger.kernel.org \
    --cc=so_usp@yahoo.com.br \
    /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®