Skip to contentSkip to conversation

man: Add io_setup.3 and io_destroy.3

PATCH In review Cyril Hrubis 2 participants 5 messages Mar 26, 2013 – Mar 28, 2013 3 messages not in the archive Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 man: Add io_setup.3 and io_destroy.3

This patch adds two missing manual pages.

I've tried to format them in accordance with
Linux man-pages project. If these are acked
I'll reformat the rest of the io_* system call
wrappers man pages to match.

---
 man/io_destroy.3 |   45 +++++++++++++++++++++++++++++++++++++++++++++
 man/io_setup.3   |   45 +++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 90 insertions(+), 0 deletions(-)
 create mode 100644 man/io_destroy.3
 create mode 100644 man/io_setup.3
man/io_destroy.3 new file +45 -0
new file mode 100644
index 0000000..6d84213
@@ -0,0 +1,45 @@
+.\" Copyright (C) 2013 Cyril Hrubis <[email protected]>
+.\"
+.\" %%%LICENSE_START(GPL_NOVERSION_ONELINE)
+.\" This file is distributed according to the GNU General Public License.
+.\" %%%LICENSE_END
+.\"
+.TH IO_DESTROY 3 2013-03-26 "Linux" "Linux AIO"
+.SH NAME
+io_destroy \- destroy an asynchronous I/O context
+.SH SYNOPSIS
+.nf
+.B #include <libaio.h>
+
+.BI "int io_destroy(io_context_t ctx)"
+.sp
+Link with \fI\-laio\fP.
+.fi
+.SH DESCRIPTION
+This is a wrapper for the
+.BR io_destroy
+system call, see
+.BR io_destroy (2)
+for more information.
+.PP
+See
+.BR io_queue_release (3)
+for
+.I libaio
+highlevel interface.
+.SH "RETURN VALUES"
+On success
+.BR io_setup ()
+returns 0. On failure negative error number is returned.
+.SH NOTES
+Note that Linux system call uses different type
+.RI ( "aio_context_t\ *" )
+for the
+.I ctx
+argument.
+.SH "SEE ALSO"
+.BR io_queue_release (3)
+.BR io_setup (3)
+.BR io_submit (3)
+.BR io_cancel (3)
+.BR io_getevents (3)
man/io_setup.3 new file +45 -0

45 lines not on this page · raw message

Signature · 10 lines
1.7.8.6


-- 
Cyril Hrubis
[email protected]
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): 20130326170626.GA11360-J5syqNJeCN7twjQa/[email protected]

#2 lore raw

Cyril,

Quoted 6 lines · Cyril Hrubis

This patch adds two missing manual pages.

I've tried to format them in accordance with Linux man-pages project. If these are acked I'll reformat the rest of the io_* system call wrappers man pages to match.

So, here's what I'm not clear on. AFAIK, the io_setup() wrapper (and the other io_*() wrappers) is provided in libaio, right? And libaio is a completely separate package from glibc, right?

The man-pages project documents the Linux syscall and glibc APIs, so if my understanding above is correct, then these io_*(3) pages belong in the libaio package, not in in man-pages. Could you or Jeff clarify?

Thanks,

Michael

Quoted 117 lines
---
 man/io_destroy.3 |   45 +++++++++++++++++++++++++++++++++++++++++++++
 man/io_setup.3   |   45 +++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 90 insertions(+), 0 deletions(-)
 create mode 100644 man/io_destroy.3
 create mode 100644 man/io_setup.3
man/io_destroy.3 new file +45 -0
new file mode 100644
index 0000000..6d84213
@@ -0,0 +1,45 @@
+.\" Copyright (C) 2013 Cyril Hrubis <[email protected]>
+.\"
+.\" %%%LICENSE_START(GPL_NOVERSION_ONELINE)
+.\" This file is distributed according to the GNU General Public License.
+.\" %%%LICENSE_END
+.\"
+.TH IO_DESTROY 3 2013-03-26 "Linux" "Linux AIO"
+.SH NAME
+io_destroy \- destroy an asynchronous I/O context
+.SH SYNOPSIS
+.nf
+.B #include <libaio.h>
+
+.BI "int io_destroy(io_context_t ctx)"
+.sp
+Link with \fI\-laio\fP.
+.fi
+.SH DESCRIPTION
+This is a wrapper for the
+.BR io_destroy
+system call, see
+.BR io_destroy (2)
+for more information.
+.PP
+See
+.BR io_queue_release (3)
+for
+.I libaio
+highlevel interface.
+.SH "RETURN VALUES"
+On success
+.BR io_setup ()
+returns 0. On failure negative error number is returned.
+.SH NOTES
+Note that Linux system call uses different type
+.RI ( "aio_context_t\ *" )
+for the
+.I ctx
+argument.
+.SH "SEE ALSO"
+.BR io_queue_release (3)
+.BR io_setup (3)
+.BR io_submit (3)
+.BR io_cancel (3)
+.BR io_getevents (3)
man/io_setup.3 new file +45 -1
new file mode 100644
index 0000000..626e954
@@ -0,0 +1,45 @@
+.\" Copyright (C) 2013 Cyril Hrubis <[email protected]>
+.\"
+.\" %%%LICENSE_START(GPL_NOVERSION_ONELINE)
+.\" This file is distributed according to the GNU General Public License.
+.\" %%%LICENSE_END
+.\"
+.TH IO_SETUP 3 2013-03-26 "Linux" "Linux AIO"
+.SH NAME
+io_setup \- create an asynchronous I/O context
+.SH SYNOPSIS
+.nf
+.B #include <libaio.h>
+
+.BI "int io_setup(int maxevents, io_context_t *ctx)"
+.sp
+Link with \fI\-laio\fP.
+.fi
+.SH DESCRIPTION
+This is a wrapper for the
+.BR io_setup
+system call, see
+.BR io_setup (2)
+for more information.
+.PP
+See
+.BR io_queue_init (3)
+for
+.I libaio
+highlevel interface.
+.SH "RETURN VALUES"
+On success
+.BR io_setup ()
+returns 0. On failure negative error number is returned.
+.SH NOTES
+Note that Linux system call uses different type
+.RI ( "aio_context_t\ *" )
+for the
+.I ctx
+argument.
+.SH "SEE ALSO"
+.BR io_queue_init (3)
+.BR io_destroy (3)
+.BR io_submit (3)
+.BR io_cancel (3)
+.BR io_getevents (3)
--

1.7.8.6

--
Cyril Hrubis [email protected]

Signature · 7 lines
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Author of "The Linux Programming Interface"; http://man7.org/tlpi/
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): CAKgNAkgUN7y8j2Gp8sG6hvHMJ=YBV3FGWg=EYj5X1Fg+njNysA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org

#4 lore raw

Hi!

Quoted 7 lines
Quoted 6 lines

This patch adds two missing manual pages.

I've tried to format them in accordance with Linux man-pages project. If these are acked I'll reformat the rest of the io_* system call wrappers man pages to match.

Quoted 7 lines

So, here's what I'm not clear on. AFAIK, the io_setup() wrapper (and the other io_*() wrappers) is provided in libaio, right? And libaio is a completely separate package from glibc, right?

The man-pages project documents the Linux syscall and glibc APIs, so if my understanding above is correct, then these io_*(3) pages belong in the libaio package, not in in man-pages. Could you or Jeff clarify?

You are 100% right and we both got it the first time you said this. I've simply CCed you so that you can have a quick look at the pages and say if they have all the information they should have before they got included into libaio.

Signature · 6 lines
Cyril Hrubis
[email protected]
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): 20130328093501.GA5788-J5syqNJeCN7twjQa/[email protected]

#6 lore raw
Quoted 12 lines · On Thu, Mar 28, 2013 at 10:35 AM, <[email protected]> wrote:

Hi!

Quoted 11 lines
Quoted 6 lines

This patch adds two missing manual pages.

I've tried to format them in accordance with Linux man-pages project. If these are acked I'll reformat the rest of the io_* system call wrappers man pages to match.

So, here's what I'm not clear on. AFAIK, the io_setup() wrapper (and the other io_*() wrappers) is provided in libaio, right? And libaio is a completely separate package from glibc, right?

Quoted 8 lines
Quoted 3 lines

The man-pages project documents the Linux syscall and glibc APIs, so if my understanding above is correct, then these io_*(3) pages belong in the libaio package, not in in man-pages. Could you or Jeff clarify?

You are 100% right and we both got it the first time you said this. I've simply CCed you so that you can have a quick look at the pages and say if they have all the information they should have before they got included into libaio.

Ahh -- sorry, I misunderstood. I thought you were proposing to include them into man-pages.

I'll go back and look at the pages and make a few comments.

Cheers,

Michael

Signature · 7 lines
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Author of "The Linux Programming Interface"; http://man7.org/tlpi/
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#7 lore raw
In reply to a message not in the archive
Quoted 21 lines · Cyril Hrubis

This patch adds two missing manual pages.

I've tried to format them in accordance with Linux man-pages project. If these are acked I'll reformat the rest of the io_* system call wrappers man pages to match.

---
 man/io_destroy.3 |   45 +++++++++++++++++++++++++++++++++++++++++++++
 man/io_setup.3   |   45 +++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 90 insertions(+), 0 deletions(-)
 create mode 100644 man/io_destroy.3
 create mode 100644 man/io_setup.3
man/io_destroy.3 new file +0 -0
new file mode 100644
index 0000000..6d84213

man/io_destroy.3 line 5

Quoted 5 lines
man/io_destroy.3 new file +5 -0
@@ -0,0 +1,45 @@
+.\" Copyright (C) 2013 Cyril Hrubis <[email protected]>
+.\"
+.\" %%%LICENSE_START(GPL_NOVERSION_ONELINE)
+.\" This file is distributed according to the GNU General Public License.
+.\" %%%LICENSE_END

So, the above %%% lines are a man-pages specific thing. I think you don't need them here, just the license.

Quoted 5 lines
man/io_destroy.3 new file +5 -0
+.\"
+.TH IO_DESTROY 3 2013-03-26 "Linux" "Linux AIO"
+.SH NAME
+io_destroy \- destroy an asynchronous I/O context
+.SH SYNOPSIS

man/io_destroy.3 line 20

Quoted 10 lines
man/io_destroy.3 new file +10 -0
+.nf
+.B #include <libaio.h>
+
+.BI "int io_destroy(io_context_t ctx)"
+.sp
+Link with \fI\-laio\fP.
+.fi
+.SH DESCRIPTION
+This is a wrapper for the
+.BR io_destroy

.BR io_destroy (2)

man/io_destroy.3 line 21

Quoted 1 line
man/io_destroy.3 new file +1 -0
+system call,

And then I would just delete the next 3 lines.

man/io_destroy.3 line 27

Quoted 7 lines

see
+.BR io_destroy (2)

man/io_destroy.3 new file +5 -0
+for more information.
+.PP
+See
+.BR io_queue_release (3)
+for

+ the

Quoted 2 lines

+.I libaio
+highlevel interface.

"high-level"

Quoted 1 line

+.SH "RETURN VALUES"

.SH RETURN VALUE

(No quotes needed, and remove the "S")

Quoted 1 line

+On success

Add comma.

Quoted 2 lines

+.BR io_setup ()
+returns 0. On failure negative error number is returned.

+returns 0. On failure, a negative error number is returned.

(Two changes)

Quoted 2 lines

+.SH NOTES
+Note that Linux system call uses different type

+ Note that the L:inux system call uses a differnt type

(Two changes)

man/io_destroy.3 line 40

Quoted 5 lines

+.RI ( "aio_context_t\ *" )

man/io_destroy.3 new file +4 -0
+for the
+.I ctx
+argument.
+.SH "SEE ALSO"

(No quotes needed in the preceding line.)

In man-pages at least the convention is to order man pages under SEE ALSO, by section and the _alphabetically_ within the section.

man/io_setup.3

Quoted 9 lines

+.BR io_queue_release (3)
+.BR io_setup (3)
+.BR io_submit (3)
+.BR io_cancel (3)
+.BR io_getevents (3)

man/io_setup.3 new file +0 -1
new file mode 100644
index 0000000..626e954
--- /dev/null

All of the above comments apply to the following page also:

Quoted 37 lines

+++ b/man/io_setup.3

man/io_setup.3 new file +35 -0
@@ -0,0 +1,45 @@
+.\" Copyright (C) 2013 Cyril Hrubis <[email protected]>
+.\"
+.\" %%%LICENSE_START(GPL_NOVERSION_ONELINE)
+.\" This file is distributed according to the GNU General Public License.
+.\" %%%LICENSE_END
+.\"
+.TH IO_SETUP 3 2013-03-26 "Linux" "Linux AIO"
+.SH NAME
+io_setup \- create an asynchronous I/O context
+.SH SYNOPSIS
+.nf
+.B #include <libaio.h>
+
+.BI "int io_setup(int maxevents, io_context_t *ctx)"
+.sp
+Link with \fI\-laio\fP.
+.fi
+.SH DESCRIPTION
+This is a wrapper for the
+.BR io_setup
+system call, see
+.BR io_setup (2)
+for more information.
+.PP
+See
+.BR io_queue_init (3)
+for
+.I libaio
+highlevel interface.
+.SH "RETURN VALUES"
+On success
+.BR io_setup ()
+returns 0. On failure negative error number is returned.
+.SH NOTES
+Note that Linux system call uses different type

man/io_setup.3 line 45

Quoted 10 lines
man/io_setup.3 new file +10 -0
+.RI ( "aio_context_t\ *" )
+for the
+.I ctx
+argument.
+.SH "SEE ALSO"
+.BR io_queue_init (3)
+.BR io_destroy (3)
+.BR io_submit (3)
+.BR io_cancel (3)
+.BR io_getevents (3)

Cheers,

Michael
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html