Find the answer to your Linux question:
Results 1 to 2 of 2
Hi, I am trying to change the frequency governor through a C program by writing to a file in /cpufreq folder. I change the permission by using command chmod but ...
  1. #1
    Just Joined!
    Join Date
    Feb 2010
    Posts
    9

    Problem in writing to a /sys file

    Hi,

    I am trying to change the frequency governor through a C program by writing to a file in /cpufreq folder. I change the permission by using command chmod but I am not able to write that file by using fprintf or fwrite functions.

    Can anyone please tell me a method to write to that file through a C program.

    Thank You.

  2. #2
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    I suggest you do some googling on sys filesystem

    You can't just write to files in it

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...