[Qemu-devel] Re: [PATCH 01/14] Convert io handlers to QLIST

2010-03-10 Thread Juan Quintela
malc wrote: > On Wed, 10 Mar 2010, Juan Quintela wrote: > >> malc wrote: >> > On Wed, 10 Mar 2010, Juan Quintela wrote: >> > >> >> malc wrote: >> >> > On Wed, 10 Mar 2010, Juan Quintela wrote: >> >> >> >> >> -for(ioh = first_io_handler; ioh != NULL; ioh = ioh->next) { >> >> >> +

[Qemu-devel] Re: [PATCH 01/14] Convert io handlers to QLIST

2010-03-10 Thread malc
On Wed, 10 Mar 2010, Juan Quintela wrote: > malc wrote: > > On Wed, 10 Mar 2010, Juan Quintela wrote: > > > >> malc wrote: > >> > On Wed, 10 Mar 2010, Juan Quintela wrote: > >> > >> >> -for(ioh = first_io_handler; ioh != NULL; ioh = ioh->next) { > >> >> +QTAILQ_FOREACH(ioh, &io_

[Qemu-devel] Re: [PATCH 01/14] Convert io handlers to QLIST

2010-03-10 Thread Juan Quintela
malc wrote: > On Wed, 10 Mar 2010, Juan Quintela wrote: > >> malc wrote: >> > On Wed, 10 Mar 2010, Juan Quintela wrote: >> >> >> -for(ioh = first_io_handler; ioh != NULL; ioh = ioh->next) { >> >> +QTAILQ_FOREACH(ioh, &io_handlers, next) { >> >> if (ioh->fd == fd) >>

[Qemu-devel] Re: [PATCH 01/14] Convert io handlers to QLIST

2010-03-10 Thread malc
On Wed, 10 Mar 2010, Juan Quintela wrote: > malc wrote: > > On Wed, 10 Mar 2010, Juan Quintela wrote: > > >> -for(ioh = first_io_handler; ioh != NULL; ioh = ioh->next) { > >> +QTAILQ_FOREACH(ioh, &io_handlers, next) { > >> if (ioh->fd == fd) > >> got

[Qemu-devel] Re: [PATCH 01/14] Convert io handlers to QLIST

2010-03-10 Thread Juan Quintela
malc wrote: > On Wed, 10 Mar 2010, Juan Quintela wrote: >> -for(ioh = first_io_handler; ioh != NULL; ioh = ioh->next) { >> +QTAILQ_FOREACH(ioh, &io_handlers, next) { >> if (ioh->fd == fd) >> goto found; >> } >> ioh = qemu_mallocz(siz