lkml.org 
[lkml]   [2001]   [Oct]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectSimple question on files & sockets in kernel space.
I would like to be able to read/write a file in the
regular file system (like /tmp/mystuff.txt) from the
kernel space. In user-space, I'd use open() and then
read() and write(). Can someone suggest a piece of kernel
code or documentation that does something like this?

I would also like to get a TCP/IP socket and read/write
to it in a similar manner. Basically, I want the familiarity
of user-space, but I have to implement most of the functionality
in the kernel.

Thanks,
Ben

--
Ben Greear <greearb@candelatech.com> <Ben_Greear AT excite.com>
President of Candela Technologies Inc http://www.candelatech.com
ScryMUD: http://scry.wanfear.com http://scry.wanfear.com/~greear
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:05    [W:0.035 / U:1.812 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site