bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] irqdev: remove tot_num_intr


From: Samuel Thibault
Subject: Re: [PATCH] irqdev: remove tot_num_intr
Date: Wed, 5 Aug 2020 00:58:49 +0200
User-agent: NeoMutt/20170609 (1.8.3)

Junling Ma, le mar. 04 août 2020 14:47:09 -0700, a ecrit:
> The tot_num_intr field is a count of how many deliverable interrupts across 
> all lines. When we move
> to the scheme of blocking read for request and write for acking, it is 
> possible that an interrupt
> can happen during a small period that the interrupt is acked, but the read 
> has not happended yet.

As discussed on IRC, this is rather a problem of the device_read/write
concept, that would require device_read() to be called before the
interrupt raises, just because on the kernel side the mach_device_t is
the same for all userland processes sharing the IRQ. I don't think it's
a path we want to follow, and we'd rather use register/ack IPC like we
have now.

Samuel



reply via email to

[Prev in Thread] Current Thread [Next in Thread]