All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stefan Richter <stefanr@s5r6.in-berlin.de>
To: joseluismarchetti@yahoo.com.br
Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org
Subject: MAC address runtime configuration in new driver (was Re: ...no subject)
Date: Sun, 11 Jan 2009 16:12:14 +0100	[thread overview]
Message-ID: <496A0C4E.5040502@s5r6.in-berlin.de> (raw)
In-Reply-To: <204164.94418.qm@web34403.mail.mud.yahoo.com>

Jose Luis Marchetti wrote:
> Hi,
> 
> I would like to open/read/write/close a regular file from my device
> driver.
> I think it would be possible, but I am confused, the "The Linux Kernel
> Module Programming Guide" states that I can not use standard libraries
> from within a module, I know the standard library ends up calling
> system calls, but which calls should I use to deal with regular
> files ?

http://kernelnewbies.org/FAQ/WhyWritingFilesFromKernelIsBad discusses this.

> I am developing a Ethernet driver and the Mac address configuration
> 
> Thanks in advance!
> 
> José Luís Marchetti

Userspace could write the necessary configuration data into the kernel,
for example a sysfs attribute.  Of course the attribute could also be
readable.  But perhaps there are already established mechanisms for
exactly this purpose.  I added Cc: netdev, maybe somebody there can give
advice.
-- 
Stefan Richter
-=====-==--= ---= -=-==
http://arcgraph.de/sr/

  parent reply	other threads:[~2009-01-11 15:12 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-11  3:41 Jose Luis Marchetti
2009-01-11  5:44 ` Cooper Yuan
2009-01-11  6:47 ` your mail Jesper Juhl
2009-01-11 15:12 ` Stefan Richter [this message]
2009-01-12  2:14   ` MAC address runtime configuration in new driver (was Re: ...no subject) Jose Luis Marchetti

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=496A0C4E.5040502@s5r6.in-berlin.de \
    --to=stefanr@s5r6.in-berlin.de \
    --cc=joseluismarchetti@yahoo.com.br \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@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 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.