From mboxrd@z Thu Jan 1 00:00:00 1970 From: Charles Manning Subject: Handling a directory search Date: Wed, 8 Feb 2006 11:10:00 +1300 Message-ID: <200602081110.00692.manningc2@actrix.gen.nz> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from desire.actrix.co.nz ([203.96.16.164]:23974 "EHLO desire.actrix.co.nz") by vger.kernel.org with ESMTP id S1030181AbWBGWHr (ORCPT ); Tue, 7 Feb 2006 17:07:47 -0500 Received: from 202-154-141-71.ras.actrix.co.nz (unknown [202.154.141.71]) by desire.actrix.co.nz (Postfix) with ESMTP id 5DE1A155C9 for ; Wed, 8 Feb 2006 11:07:37 +1300 (NZDT) To: linux-fsdevel@vger.kernel.org Content-Disposition: inline Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org 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? Thanx -- Charles