All of lore.kernel.org
 help / color / mirror / Atom feed
From: FabF <fabian.frederick@skynet.be>
To: lkml <linux-kernel@vger.kernel.org>
Subject: [OFFTOPIC] f_pos ?
Date: Sun, 04 Jul 2004 21:18:05 +0200	[thread overview]
Message-ID: <1088968685.2429.1.camel@localhost.localdomain> (raw)

Hi,
	
	I try to understand how readdir process works and I can't understand
f_pos management :

        Having in mind things work that way :

        user : ls
        glibc : 
                open (->sys_open)
                getdentries64 (->sys_getdentries64)
                
        kernel:
                sys_getdentries64
                ->vfs_readdir
                        ->ext2_readdir

At that point, I don't understand why ext2_readdir is playing with
filp->f_pos .... It should be 0 ...Why does it care about offset ?

Thanks in advance for your precious help,
FabF


             reply	other threads:[~2004-07-04 19:18 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-04 19:18 FabF [this message]
2004-07-06 19:58 ` [OFFTOPIC] f_pos ? Maneesh Soni
2004-07-06 20:38   ` [OFFTOPIC] f_pos ? [PATCH 2.6.7-mm6] ext2_readdir commenting FabF
2004-07-06 20:51   ` [OFFTOPIC] f_pos ? FabF

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=1088968685.2429.1.camel@localhost.localdomain \
    --to=fabian.frederick@skynet.be \
    --cc=linux-kernel@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.