From: Nick Garnett <nickg@ecoscentric.com>
To: Savin Zlobec <savin@elatec.si>
Cc: ecos-discuss@sources.redhat.com
Subject: Re: [ECOS] Filesystem get/setinfo
Date: Mon, 20 Oct 2003 17:07:00 -0000 [thread overview]
Message-ID: <m3fzho3qj3.fsf@miso.calivar.com> (raw)
In-Reply-To: <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
next prev parent reply other threads:[~2003-10-20 17:07 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-20 12:41 Savin Zlobec
2003-10-20 17:07 ` Nick Garnett [this message]
2003-10-20 18:25 ` Savin Zlobec
2003-10-22 9:32 ` Nick Garnett
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=m3fzho3qj3.fsf@miso.calivar.com \
--to=nickg@ecoscentric.com \
--cc=ecos-discuss@sources.redhat.com \
--cc=savin@elatec.si \
/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 read-only IMAP folder(s) and NNTP newsgroup(s).