RE: Using a FILE

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

 



Use printk() to print to syslog and check that.

Chris

-----Original Message-----
From: kernelnewbies-bounce@nl.linux.org
[mailto:kernelnewbies-bounce@nl.linux.org] On Behalf Of Christian Vik
Sent: 03 June 2002 08:13
To: kernelnewbies@nl.linux.org
Subject: SV: Using a FILE



I am definitly a kernel newbie myself.

But,
I think "FILE *file" as in filestreams is provided by libc/glibc, and
therefor cannot be used from within the kernel. You do not have access
to userspace functions from kernelspace.

So, my answer is that you can't use "FILE *file" from kernelspace.



Christian Vik

-----Opprinnelig melding-----
Fra: kernelnewbies-bounce@nl.linux.org
[mailto:kernelnewbies-bounce@nl.linux.org]Pa vegne av Juan Ramon Jimenez
Garcia
Sendt: 3. juni 2002 08:58
Til: kernelnewbies@nl.linux.org
Emne: Using a FILE




  Hi all

   I'm newbie in kernel development. I'm writing a driver, and i'want
   to save some values in a file to analyze them after execute my
   probes. Do i need something special if i want to use a FILE *file? 

   I can compile my driver, but when i make 'insmod', it tell me that
   'unresolved symbol fopen' and 'unresolved symbol fclose' :-? 

   It's posible what i want to do? How?

    Thanks in advance
    J



_______________________________
12MB/WAP/filters/folders/fast !
FREE e-mail http://www.ZAPO.net 

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[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