Re: Kernel crash w/o reason

2004-12-24 Thread Robert Watson
On Fri, 24 Dec 2004, Jan Engelhardt wrote: > >> What should I use instead? A semaphore? > > >You shouldn't have unrelated kernel threads waiting for a user > >process at all, so this sounds like a design problem, regardless > >of which mutual exclusion primitive you use. (Bear in mind that I > >

parameters for tsleep(9)

2004-12-24 Thread Norbert Koch
Hello. I am just writing a device driver for the i82527 (can-bus) chip. For testing I need the driver to poll the chip instead of running in interrupt mode. My dev_t read function basically looks like this: for (;;) { while (chip_has_data(...)) { read_chip_data(...); error = do_uiomo

Re: Kernel crash w/o reason

2004-12-24 Thread Jan Engelhardt
>> I wanted that the device can only be opened once, >> and holding a mutex while it >> is open seemed like a simple idea. (Since >> mtx_trylock() will then fail -- easy >> to implement.) > >An even more simpler idea would be to set a flag in >the softc data structure on initialization, so as to >a

Can i Send Crafted TCP Packet to allready extablished connected socket

2004-12-24 Thread samrat saha
Hi all, I tried to send specially crafted TCP Packet with customized flag setting to a Connected Socket established standard socket() call. After establishing tcp connection i tried to sent Specially crafted packet from my Client to the server using RAW socket but with the same Socket descripto

Re: Kernel crash w/o reason

2004-12-24 Thread Kamal R. Prasad
--- Jan Engelhardt <[EMAIL PROTECTED]> wrote: > >> What should I use instead? A semaphore? > > >You shouldn't have unrelated kernel threads waiting > for a user > >process at all, so this sounds like a design > problem, regardless > >of which mutual exclusion primitive you use. (Bear > in mind

Re: Kernel crash w/o reason

2004-12-24 Thread Jan Engelhardt
>> What should I use instead? A semaphore? >You shouldn't have unrelated kernel threads waiting for a user >process at all, so this sounds like a design problem, regardless >of which mutual exclusion primitive you use. (Bear in mind that I >haven't actually looked into what you're trying to do.)

Slattach

2004-12-24 Thread Paul Halliday
I am trying, rather unsuccessfully, to install 5.3 on my libretto. I am attempting to do the install with slattach to a 5.2.1 machine. I have done this successfully before so I am assuming I have the semantics screwy somewhere. box1# slattach -a -h -l -s 38400 /dev/cuaa0 box1# ifconfig sl0 up 10.1