From: Charles Manning <manningc2@actrix.gen.nz>
To: linux-fsdevel@vger.kernel.org
Subject: Re: Handling a directory search
Date: Wed, 8 Feb 2006 15:18:18 +1300 [thread overview]
Message-ID: <200602081518.18804.manningc2@actrix.gen.nz> (raw)
In-Reply-To: <200602081110.00692.manningc2@actrix.gen.nz>
On Wednesday 08 February 2006 11:10, Charles Manning wrote:
> Hi folks.
>
> I'm tweaking the readdir handling for YAFFS and need to be able to manage a
> "directory search context" structure where I can stash the context.
>
> ie.
>
> /* user prog and corresponding YAFFS operation */
>
> opendir(..); /* YAFFS needs to create a search context */
>
> readdir(...); /* YAFFS needs to use the search context */
>
> closedir(...); /* YAFFS needs to release the search context */
>
> I am unsure as to how to hook the opendir and closedir to create/release
> the directory search context.
>
> Any pointers?
>
> First prize: Any examples?
>
I think I have found the answer, I'd like anyone to verify that I've got this
straight.
The dir operations .open will be called during opendir, allowing me to hang a
context off filp->private_data.
The dir operations .release will be called during the closedir allowing me to
release the context.
Is that safe?
Are there any hungry wolves out there going to bite me if I work to the above?
Thanx
-- Charles
next prev parent reply other threads:[~2006-02-08 2:15 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-07 22:10 Handling a directory search Charles Manning
2006-02-08 2:18 ` Charles Manning [this message]
2006-02-09 13:06 ` Tomas Hruby
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=200602081518.18804.manningc2@actrix.gen.nz \
--to=manningc2@actrix.gen.nz \
--cc=linux-fsdevel@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).