Re: proc files

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

 



/proc files aren't 'real' files..  when they are read they call a kernel
function to generate the output you see from cat, vi, etc.  some of them
can be written, but only if there is an accompanying write function. 
otherwise, when you try and write to the 'file' the data will disappear
into the ether since there is no callback to catch the data..  if you
feel it necessary, you can try and write a write handler for the proc
file in question...   read all about it in /usr/src/linux/fs/proc/*.c

-matt

cyb wrote:
> 
> i want to change some
> interrupt setting written under
> /proc directory. the files seems
> to be read only so i cannot
> edit any of them.
> 
> is there an interface to change the settings?
> 
> i tried removing the read flag
> but it won't do.
> please help.
> -
> Kernelnewbies: Help each other learn about the Linux kernel.
> Archive:       http://mail.nl.linux.org/kernelnewbies/
> IRC Channel:   irc.openprojects.net / #kernelnewbies
> Web Page:      http://www.kernelnewbies.org/
-
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
IRC Channel:   irc.openprojects.net / #kernelnewbies
Web Page:      http://www.kernelnewbies.org/


[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