Re: Question on KPI / NKE : sys/select.h : struct selinfo ?
Re: Question on KPI / NKE : sys/select.h : struct selinfo ?
- Subject: Re: Question on KPI / NKE : sys/select.h : struct selinfo ?
- From: Steven Palm <email@hidden>
- Date: Thu, 5 May 2005 01:12:50 -0500
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.
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
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:
struct selinfo rsel;
selthreadclear(&rsel);
selrecord(p, &rsel, wql);
selwakeup(&rsel);
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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden