From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=45665 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PdNn5-0006se-HO for qemu-devel@nongnu.org; Thu, 13 Jan 2011 09:04:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PdNn4-0000jP-EA for qemu-devel@nongnu.org; Thu, 13 Jan 2011 09:04:39 -0500 Received: from mx1.redhat.com ([209.132.183.28]:34260) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PdNn4-0000jJ-6A for qemu-devel@nongnu.org; Thu, 13 Jan 2011 09:04:38 -0500 Message-ID: <4D2F066B.1070001@redhat.com> Date: Thu, 13 Jan 2011 15:04:27 +0100 From: Gerd Hoffmann MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Re: [PATCH 0/5] iohandlers: Add support for enabling/disabling individual handlers List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Amit Shah Cc: qemu list , Paul Brook On 01/13/11 14:00, Amit Shah wrote: > Hi, > > This patchset adds new interfaces to work with iohandlers. It adds: > > int assign_fd_handlers(int fd, IOHandlerOps *ops, void *opaque) > -- Specify io handlers for an fd > int remove_fd_handlers(int fd) > -- Remove fd handlers for fd (mark ioh for deletion) > int set_read_poll_fd_action(int fd, bool enable) > -- Enable or disable the fd_read_poll fd handler > int set_read_fd_action(int fd, bool enable) > -- Enable or disable the fd_read fd handler > int set_write_fd_action(int fd, bool enable) > -- Enable or disable the fd_read fd handler > > A new struct, IOHandlerOps, is added, to collect all the ops together > instead of passing individual ones to functions. > > The older function, qemu_set_fd_handler2(), is now a wrapper to > assign_fd_handlers() and can be deprecated by converting the existing > usage to assign_fd_handlers(). Looks good overall, just some minor nits, see replies to individual patches. cheers, Gerd