From: Goswin von Brederlow <goswin-v-b@web.de>
To: LKML <linux-kernel@vger.kernel.org>
Cc: Goswin von Brederlow <goswin-v-b@web.de>
Subject: include/linux/aio_abi.h and IOCB_CMD_POLL
Date: Thu, 04 Jun 2009 01:18:50 +0200 [thread overview]
Message-ID: <87d49k6h45.fsf@frosties.localdomain> (raw)
Hi,
please CC me on replies.
I'm trying to write a fuse filesystem in ocaml using asynchronous
IO. For that to work nicely I need to poll /dev/fuse for incoming
requests without reading data from it (libfuse does that when called,
I just need to know when I can call it without it blocking).
Now to my problem. The header file for libaio says:
| /* Jeff Moyer says this was implemented in Red Hat AS2.1 and RHEL3.
| * AFAICT, it was never in mainline, and should not be used. --RR */
| static inline void io_prep_poll(struct iocb *iocb, int fd, int events)
I tried using it anyway but all I got was an error that /dev/fuse is
not seekable. I also looked in the kernel source and didn't see any
implementation for poll there.
So my questions now are:
1) Why was this never adapted into mainline?
2) Do you know if there is any patch for it against a recent kernel?
3) Are there any alternatives to libaio that don't use threads and
support polling?
MfG
Goswin
next reply other threads:[~2009-06-03 23:19 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-03 23:18 Goswin von Brederlow [this message]
2009-06-04 13:16 ` Miklos Szeredi
2009-06-04 15:18 ` Goswin von Brederlow
2009-06-04 15:19 ` Davide Libenzi
2009-06-04 22:53 ` Goswin von Brederlow
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=87d49k6h45.fsf@frosties.localdomain \
--to=goswin-v-b@web.de \
--cc=linux-kernel@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
all inboxes | Powered by JetHome®