mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Chris Wright <chris@wirex.com>
To: Nav Mundi <nmundi@karthika.com>
Cc: linux-kernel@vger.kernel.org, apiggyjj@yahoo.ca
Subject: Re: 'fd' file descriptor help
Date: Thu, 6 Dec 2001 13:45:19 -0800	[thread overview]
Message-ID: <20011206134519.A19511@figure1.int.wirex.com> (raw)
In-Reply-To: <20011206211817.FAUB17034.tomts10-srv.bellnexxia.net@there>
In-Reply-To: <20011206211817.FAUB17034.tomts10-srv.bellnexxia.net@there>; from nmundi@karthika.com on Thu, Dec 06, 2001 at 04:18:05PM -0500

* Nav Mundi (nmundi@karthika.com) wrote:
> Does anyone know what the file descriptor 'fd' pointer does?  My module makes 
> a system call [sys_open] to the kernal which then returns a fd value but I 
> don't know what this value means or how it gets it.  Does the fd value 
> signify a specific device or is it random?  Any ideas?

fd is a handle for the kernel file struct representing the file you
opened.  read include/linux/file.h::fd_install() to understand where
it's put, and include/linux/file.h::fcheck() as an example of retrieving
kernel object from the handle.

cheers,
-chris

      reply	other threads:[~2001-12-06 21:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-12-06 21:18 Nav Mundi
2001-12-06 21:45 ` Chris Wright [this message]

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=20011206134519.A19511@figure1.int.wirex.com \
    --to=chris@wirex.com \
    --cc=apiggyjj@yahoo.ca \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nmundi@karthika.com \
    /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

all inboxes | Powered by JetHome®