From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20556 invoked by alias); 20 Oct 2003 17:07:22 -0000 Mailing-List: contact ecos-discuss-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@sources.redhat.com Received: (qmail 20544 invoked from network); 20 Oct 2003 17:07:21 -0000 Received: from unknown (HELO anchor-post-34.mail.demon.net) (194.217.242.92) by sources.redhat.com with SMTP; 20 Oct 2003 17:07:21 -0000 Received: from calivar.demon.co.uk ([212.228.213.211] helo=miso.calivar.com) by anchor-post-34.mail.demon.net with esmtp (Exim 3.35 #1) id 1ABdV1-0004x0-0Y; Mon, 20 Oct 2003 18:07:20 +0100 Received: from miso.calivar.com (miso.calivar.com [127.0.0.2]) by miso.calivar.com (Postfix) with ESMTP id EEBA928DF45; Mon, 20 Oct 2003 15:57:52 +0100 (BST) To: Savin Zlobec Cc: ecos-discuss@sources.redhat.com References: <3F93D904.7090204@elatec.si> From: Nick Garnett Date: Mon, 20 Oct 2003 17:07:00 -0000 In-Reply-To: <3F93D904.7090204@elatec.si> Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [ECOS] Filesystem get/setinfo X-SW-Source: 2003-10/txt/msg00346.txt.bz2 Savin Zlobec writes: > I need to write some filesystem specific functions. > The get/setinfo calls seem to be the right way to do this, > but I can't find any functions to access them from my application. > > The following functions would do the trick for me: > > int cyg_fs_getinfo(const char *path, int key, void *buf, int len); > int cyg_fs_setinfo(const char *path, int key, void *buf, int len); > int cyg_fs_fgetinfo(int fd, int key, void *buf, int len); > int cyg_fs_fsetinfo(int fd, int key, void *buf. int len); > > Or is there any way to do this already without accessing internal > structures? For filesystems you should be using ioctl() for these sorts of out-of-band control operations. That's what it's there for, and more than likely there is already a code defined for what you want to do. What do you need these functions for? -- Nick Garnett eCos Kernel Architect http://www.ecoscentric.com The eCos and RedBoot experts -- Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos and search the list archive: http://sources.redhat.com/ml/ecos-discuss