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
> >
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
>> 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
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
--- 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
>> 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.)
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
7 matches
Mail list logo