Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 May 2012 17:39:15 -0400
From:      Rayson Ho <raysonlogin@gmail.com>
To:        "enrico d'urso" <e.durso@live.com>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: [Kevent]
Message-ID:  <CAHwLALPVE8Jp8YukpY_gTWVhteOvhkd_qte4Qfjcb1FWqrzu8w@mail.gmail.com>
In-Reply-To: <DUB116-W851B2C75F31C51D6C1923D97010@phx.gbl>
References:  <DUB116-W851B2C75F31C51D6C1923D97010@phx.gbl>

next in thread | previous in thread | raw e-mail | index | archive | help
You can google kqueue tutorial and get lots of example... Sadly,
Google Code Search is dead, but Google is still your friend!

Rayson

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D
Open Grid Scheduler / Grid Engine
http://gridscheduler.sourceforge.net/

Scalable Grid Engine Support Program
http://www.scalablelogic.com/



On Fri, May 25, 2012 at 5:22 PM, enrico d'urso <e.durso@live.com> wrote:
>
> Hi, I'm Italian , so sorry for my bad English.
>
> I would understand something about Kevent function.
>
> Please, look this code:
>
> nev =3D kevent( kqueue_descr, events_list, how_many_targets,events_trig, =
how_many_targets,&tmout);
>
> When kevent returns and nev is >0, nev is equal to ready descriptor and t=
o understand what are ready I have to
> look in events_trig array?
>
> For example I can use a cycle as:
>
> for(i=3D0; i< nev; i++)
> if( events_trig[i].ident =3D=3D mysocket)
> ....
>
> In the case you would look code it is here:
> http://forums.freebsd.org/showthread.php?p=3D178443#post178443
>
> Bye
>
> Enrico
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =
=A0 =A0 =A0_______________________________________________
> freebsd-hackers@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org=
"



--=20
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Open Grid Scheduler - The Official Open Source Grid Engine
http://gridscheduler.sourceforge.net/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAHwLALPVE8Jp8YukpY_gTWVhteOvhkd_qte4Qfjcb1FWqrzu8w>