From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=59805 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PdOnb-0007tT-Ne for qemu-devel@nongnu.org; Thu, 13 Jan 2011 10:09:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PdOna-0004Cr-NX for qemu-devel@nongnu.org; Thu, 13 Jan 2011 10:09:15 -0500 Received: from mx1.redhat.com ([209.132.183.28]:6053) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PdOna-0004Ch-Fa for qemu-devel@nongnu.org; Thu, 13 Jan 2011 10:09:14 -0500 Message-ID: <4D2F158C.40609@redhat.com> Date: Thu, 13 Jan 2011 16:09:00 +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 v2 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 16:00, Amit Shah wrote: > 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 now. Acked-by: Gerd Hoffmann cheers, Gerd