From: "Rakesh Jagota" <j.rakesh@gdatech.co.in>
To: Jeff Garzik <jgarzik@pobox.com>
Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org,
kernelnewbies@nl.linux.org
Subject: Re: opening a file inside the kernel module
Date: Wed, 29 Sep 2004 11:26:30 +0530 [thread overview]
Message-ID: <001c01c4a5e9$114bf490$8200a8c0@RakeshJagota> (raw)
In-Reply-To: <415A4151.7060301@pobox.com>
Hi,
Thnx.
I want to implement socket from the module. I won't be having any user
process running to handle the descriptors coming from socket. Could you pl
tell me how to handle the socket descriptor from the kernel module.
Thanks,
rakesh
----- Original Message -----
From: "Jeff Garzik" <jgarzik@pobox.com>
To: "Rakesh Jagota" <j.rakesh@gdatech.co.in>
Cc: <linux-mm@kvack.org>; <linux-kernel@vger.kernel.org>;
<kernelnewbies@nl.linux.org>
Sent: Wednesday, September 29, 2004 10:30 AM
Subject: Re: opening a file inside the kernel module
> Rakesh Jagota wrote:
> > Hi all,
> > I am working in linux, i would like to know abt whether can I open a
file
> > inside the kernel module without using any application. If so how how
the
> > files_struct will be maintained. Does a kernel module has this struct?
>
> Don't do this. It's incompatible with namespaces.
>
> Instead, figure out some way to pass the file contents to the kernel
module.
>
> Jeff
>
>
>
> --
> Kernelnewbies: Help each other learn about the Linux kernel.
> Archive: http://mail.nl.linux.org/kernelnewbies/
> FAQ: http://kernelnewbies.org/faq/
>
>
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>
next prev parent reply other threads:[~2004-09-29 5:56 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-28 22:40 get_user_pages() still broken in 2.6 Timur Tabi
2004-09-28 23:03 ` Christoph Hellwig
2004-09-28 23:21 ` Dave Hansen
2004-09-29 14:46 ` Timur Tabi
2004-09-29 14:48 ` Timur Tabi
2004-09-29 15:01 ` Christoph Hellwig
2004-09-29 4:49 ` opening a file inside the kernel module Rakesh Jagota
2004-09-29 5:00 ` Jeff Garzik
2004-09-29 5:56 ` Rakesh Jagota [this message]
2004-09-29 15:52 ` Stuart MacDonald, linux-kernel-owner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='001c01c4a5e9$114bf490$8200a8c0@RakeshJagota' \
--to=j.rakesh@gdatech.co.in \
--cc=jgarzik@pobox.com \
--cc=kernelnewbies@nl.linux.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox