Re: Question on KPI / NKE : sys/select.h : struct selinfo ?
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com A question on sys/select.h / selinfo as used in a kext: I see this defined in sys/select.h: /* * Used to maintain information about processes that wish to be * notified when I/O becomes possible. */ struct selinfo; __BEGIN_DECLS void selrecord(proc_t selector, struct selinfo *, void *); void selwakeup(struct selinfo *); void selthreadclear(struct selinfo *); __END_DECLS struct selinfo rsel; selthreadclear(&rsel); selrecord(p, &rsel, wql); selwakeup(&rsel); On May 4, 2005, at 3:52 PM, Josh Graessley wrote: The send and receive queue structures were removed from the ifnet structure. Thanks for the pointers on recreating them for use in the tun/tap driver. I'm having one odd issue surrounding that, but I'm going to work on it a bit more before I post back here. But the selinfo structure is not actually defined anywhere here... Should it be? The code I am trying to work with is doing this definition and these calls: However the compiler complains because it is lacking a complete definition for rsel. I can't even declare it a as a pointer, because I have nothing to use sizeof() against to find out how much memory to alloc. _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com
participants (1)
-
Steven Palm