From: vikas gupta <vikas_gupta51013@yahoo.co.in>
To: linux-aio@kvack.org, linux-kernel@vger.kernel.org
Cc: suparna@in.ibm.com, bcrl@kvack.org
Subject: AIO Support and related package information??
Date: Thu, 22 Sep 2005 04:08:44 +0100 (BST) [thread overview]
Message-ID: <20050922030844.14682.qmail@web8406.mail.in.yahoo.com> (raw)
hello ALL ,
I am very curious about the AIO support in kernel. I
have downloaded the
recent kernel 2.6.13 and applied suparna's patches on
that but now i got stuck as
now there are two different packages are available.
1) libaio rpm
There are many rpm available such as
libaio-0.3.xxx-02.src rpm and many
more but at http://lse.sourceforge.net/io/aio.html
,Somebody has said to use
libaio-0.3.99 package ..
So can you please give me some guidelines on after
applying the patch how
to proceed further???
Is these packages are part of linux kernel
installation ????
Is this package implementation is really necessary and
if yes then what
are the packages we need to install.
And if any other resource is required then from where
i can get that
resource.
2) libposix API library of
http://www.bullopensource.org/posix.
How to use it???
Is it any other way of implementing the AIO
Support or it is to
provide posix conformance to the kernel.
3) What is the relation between libposixaio pacakage
supported by bullsource.net and libaio pacakage
supported by redhat ....
4) I am able to built that libposix package without
libaio ??????
5) are these pacakages are supported for othewr
platforms such as arm and ppc ,I am not able to build
libposix for arm platform.Do Cross compiling is
supported ???
6) How to use these api in test program
Can i use it as mentioned below ????
Test1.c
#include <aio.h>
#include <errno.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#define BYTES 8
int main( int argc, char *argv[] )
{
int i, r;
int fildes;
struct aiocb cb;
char buff[BYTES];
if ((fildes = open( "/etc/resolv.conf", O_RDONLY
)) < 0) {
perror( "opening file" ); return 1;
}
cb.aio_fildes = fildes;
cb.aio_offset = 0;
cb.aio_buf = buff;
cb.aio_nbytes = BYTES;
cb.aio_reqprio = 0;
cb.aio_sigevent.sigev_notify = SIGEV_NONE;
errno = 0;
r = aio_read( &cb );
printf( "aio_read() ret: %i\terrno: %i\n", r,
errno );
while (aio_error( &cb ) == EINPROGRESS) {
usleep( 10 ); }
for (i = 0; i < BYTES; i++) { printf( "%c ",
buff[i] ); } printf(
"\n" );
errno = 0;
r = aio_return( &cb );
printf( "aio_return() ret: %i\tBYTES: %i\terrno:
%i\n", r, BYTES,
errno );
return 0;
}
Any other information, if u can provide then it will
be of great use ...
Thanks in advance ...
Vikas
__________________________________________________________
Yahoo! India Matrimony: Find your partner now. Go to http://yahoo.shaadi.com
next reply other threads:[~2005-09-22 3:08 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-22 3:08 vikas gupta [this message]
2005-09-22 7:46 ` AIO Support and related package information?? Sébastien Dugué
2005-09-23 3:10 ` vikas gupta
2005-09-23 7:05 ` Sébastien Dugué
2005-09-26 7:32 ` vikas gupta
2005-09-26 8:59 ` Sébastien Dugué
2005-09-26 9:13 ` vikas gupta
2005-09-26 13:45 ` Sébastien Dugué
2005-09-26 14:06 ` vikas gupta
2005-09-26 14:34 ` Sébastien Dugué
2005-09-27 7:09 ` vikas gupta
2005-09-28 7:25 ` Sébastien Dugué
2005-09-28 12:57 ` vikas gupta
2005-09-28 12:58 ` vikas gupta
2005-09-28 13:35 ` Sébastien Dugué
2005-09-28 14:04 ` vikas gupta
2005-09-29 9:31 ` Sébastien Dugué
2005-09-30 3:07 ` vikas gupta
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=20050922030844.14682.qmail@web8406.mail.in.yahoo.com \
--to=vikas_gupta51013@yahoo.co.in \
--cc=bcrl@kvack.org \
--cc=linux-aio@kvack.org \
--cc=linux-kernel@vger.kernel.org \
--cc=suparna@in.ibm.com \
/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).