From: kai@gnukai.com (Kai Meyer)
To: kernelnewbies@lists.kernelnewbies.org
Subject: generic I/O
Date: Mon, 31 Oct 2011 10:24:17 -0600 [thread overview]
Message-ID: <4EAECBB1.20803@gnukai.com> (raw)
Are there existing generic block device I/O operations available
already? I am familiar with constructing and submitting 'struct bio's,
but what I'd like to do would be greatly simplified if there was an
existing I/O interface similar to the posix 'read' and 'write'
functions. If they don't exist, I would probably end up writing
functions like:
int blk_read(struct block_device *bdev, void *buffer, off_t length);
int blk_write(struct block_device *bdev, void *buffer, off_t length);
Pros and cons to this sort of approach?
-Kai Meyer
next reply other threads:[~2011-10-31 16:24 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-31 16:24 Kai Meyer [this message]
-- strict thread matches above, loose matches on Subject: below --
2011-11-14 19:15 Generic I/O Kai Meyer
2011-11-15 18:13 ` michi1 at michaelblizek.twilightparadox.com
2011-11-15 18:40 ` Kai Meyer
2011-11-15 19:12 ` michi1 at michaelblizek.twilightparadox.com
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=4EAECBB1.20803@gnukai.com \
--to=kai@gnukai.com \
--cc=kernelnewbies@lists.kernelnewbies.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;
as well as URLs for NNTP newsgroup(s).