From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeff Moyer Subject: Re: aio manuals Date: Wed, 09 Mar 2011 12:53:34 -0500 Message-ID: References: <20110309180600.GA14533@saboteur.suse.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: In-Reply-To: <20110309180600.GA14533-n1fJoQsqRnsVI8jrpt9EEQ@public.gmane.org> (Cyril Hrubis's message of "Wed, 9 Mar 2011 19:06:00 +0100") Sender: linux-man-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Cyril Hrubis Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org, linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: linux-man@vger.kernel.org Cyril Hrubis writes: > Hi! > The io_* manuals says that we should use aio_context_t as type for aio > handle. That is wrong as the functions are defined with io_context_t > (libaio.h). Patch attached. > > The only oustanding issue is that manual for io_setup says that we must > set the io_context_t to 0 before use. And as the io_context_t is defined > as opaque type (and it's defined as pointer now) the only way to > initalize it without warnigs is memset(&ctxp, 0, sizeof(ctxp));. Perhaps > this is not needed at all, as the ctpx is passed to the syscall and then > initalized in the kernel (at least I haven't seem any checks in the > codepath). There are checks in place for this, so the man page should not change in that regard. Cheers, Jeff -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html