Re: page fault in ugenpoll()

2005-05-20 Thread Dirk GOUDERS
> The control endpoint /dev/ugen0 does not support polling. But > polling /dev/ugen0.X should work, where "X" is a number. > > "ugenpoll()" in "/sys/dev/usb/ugen.c" should have something like this added: > > if(control endpoint) return POLLNVAL; /* and not "return EIO;" */ > > Please f

Re: page fault in ugenpoll()

2005-05-20 Thread Hans Petter Selasky
On Friday 20 May 2005 02:29, Dirk GOUDERS wrote: > Hello, > > just for completeness, I want to provide a simple program that causes > a kernel panic when invoked with the argument /dev/ugen0: The control endpoint /dev/ugen0 does not support polling. But polling /dev/ugen0.X should work, where "X"

Re: page fault in ugenpoll()

2005-05-19 Thread Dirk GOUDERS
Hello, just for completeness, I want to provide a simple program that causes a kernel panic when invoked with the argument /dev/ugen0: #include #include #include #include #include #include int main(int argc, char *argv[]) { int fd; int nfd; char *path = argv[1]; struct poll

page fault in ugenpoll()

2005-05-19 Thread Dirk Gouders
Hello, on a machine FreeBSD karga.hank.home 4.11-STABLE FreeBSD 4.11-STABLE #2: Thu May 19 12:32:50 CEST 2005 [EMAIL PROTECTED]:/usr/src/sys/compile/KARGA i386 I am playing with a Cryptoflex e-gate USB token and get kernel panics when invoking a program openct-control to access it: Fatal