static void init_pipe_signaling(PCIQXLDevice *d)

{

   if (pipe(d->pipe) < 0) {

       dprint(d, 1, "%s: pipe creation failed\n", __FUNCTION__);

       return;

   }

#ifdef CONFIG_IOTHREAD

   fcntl(d->pipe[0], F_SETFL, O_NONBLOCK);

#else

   fcntl(d->pipe[0], F_SETFL, O_NONBLOCK /* | O_ASYNC */);

#endif

   fcntl(d->pipe[1], F_SETFL, O_NONBLOCK);

   fcntl(d->pipe[0], F_SETOWN, getpid());



   d->main = pthread_self();

   qemu_set_fd_handler(d->pipe[0], pipe_read, NULL, d);

}

static void init_pipe_signaling(PCIQXLDevice *d)

{

   if (pipe(d->pipe) < 0) {

       dprint(d, 1, "%s: pipe creation failed\n", __FUNCTION__);

       return;

   }

#ifdef CONFIG_IOTHREAD

   fcntl(d->pipe[0], F_SETFL, O_NONBLOCK);

#else

   fcntl(d->pipe[0], F_SETFL, O_NONBLOCK );

#endif

   fcntl(d->pipe[1], F_SETFL, O_NONBLOCK);

   fcntl(d->pipe[0], F_SETOWN, getpid());



   d->main = pthread_self();

   qemu_set_fd_handler(d->pipe[0], pipe_read, NULL, d);

}

#ifdef CONFIG_IOTHREAD #endif #ifdef CONFIG_IOTHREAD #endif #endif #ifdef CONFIG_IOTHREAD #else #endif #ifdef CONFIG_IOTHREAD #else #endif #ifdef CONFIG_IOTHREAD #endif #else #endif #endif #endif #ifdef CONFIG_IOTHREAD #else #endif #endif #ifdef CONFIG_IOTHREAD #endif #endif #endif #ifdef CONFIG_IOTHREAD #else #endif
static void FUNC_0(PCIQXLDevice *VAR_0)

{

   if (pipe(VAR_0->pipe) < 0) {

       dprint(VAR_0, 1, "%s: pipe creation failed\n", __FUNCTION__);

       return;

   }

#ifdef CONFIG_IOTHREAD

   fcntl(VAR_0->pipe[0], F_SETFL, O_NONBLOCK);

#else

   fcntl(VAR_0->pipe[0], F_SETFL, O_NONBLOCK );

#endif

   fcntl(VAR_0->pipe[1], F_SETFL, O_NONBLOCK);

   fcntl(VAR_0->pipe[0], F_SETOWN, getpid());



   VAR_0->main = pthread_self();

   qemu_set_fd_handler(VAR_0->pipe[0], pipe_read, NULL, VAR_0);

}

static void FUNC_0(PCIQXLDevice *VAR_0)
{ if (pipe(VAR_0->pipe) < 0) { dprint(VAR_0, 1, "%s: pipe creation failed\n", __FUNCTION__); return; } #ifdef CONFIG_IOTHREAD
fcntl(VAR_0->pipe[0], F_SETFL, O_NONBLOCK); #else
fcntl(VAR_0->pipe[0], F_SETFL, O_NONBLOCK ); #endif
fcntl(VAR_0->pipe[1], F_SETFL, O_NONBLOCK); fcntl(VAR_0->pipe[0], F_SETOWN, getpid()); VAR_0->main = pthread_self(); qemu_set_fd_handler(VAR_0->pipe[0], pipe_read, NULL, VAR_0); }