Re: Writing to file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Quoting Greg-KH:

A: http://en.wikipedia.org/wiki/Top_post
Q: Were do I find info about this thing called top-posting?
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

A: No.
Q: Should I include quotations after my reply?

Le Tue, 1 Aug 2006 21:48:29 +0200,
"Perego Paolo Franco" <p.perego@xxxxxxxx> a écrit :

> As pointed out many time also in FAQ, it's not a kernel duty to write
> files. It's userspace application duty. To help applications
> accomplish their duty kernel offers system call such open(), close()
> and so on.

As there was no FAQ entry on this issue, I started one:
http://www.kernelnewbies.org/FAQ/WhyWritingFilesFromKernelIsBad

Of course, it's incomplete. Feel free to add more informations/links.

> It's a better idea to write the things you have to via /proc o
> similiar and let a deamon to write files...

Nope. /proc should not be used for anything that is not related to
processes. There are many other ways to exchange informations with
userspace: relayfs, debugfs, netlink sockets, etc.

Sincerly,

Thomas
-- 
PETAZZONI Thomas - thomas.petazzoni@xxxxxxxx 
http://{thomas,sos,kos}.enix.org - Jabber: thomas.petazzoni@xxxxxxxxx
http://{agenda,livret}dulibre.org - http://www.toulibre.org
Fingerprint : 0BE1 4CF3 CEA4 AC9D CC6E  1624 F653 CB30 98D3 F7A7

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux