This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Filesystem get/setinfo
- From: Nick Garnett <nickg at ecoscentric dot com>
- To: Savin Zlobec <savin at elatec dot si>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: 20 Oct 2003 15:57:52 +0100
- Subject: Re: [ECOS] Filesystem get/setinfo
- References: <3F93D904.7090204@elatec.si>
Savin Zlobec <savin@elatec.si> 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