On Tue, 07 Apr 2020 12:42:06 +0200, Martin Pieuchot wrote: > fifo_poll() honors FREAD and FWRITE. It doesn't return events > incompatible with the open flags. Diff below makes the kqfilters > behave like that as well.
Looks good to me. Is there any reason you put "int a_fflag" in the middle of struct vop_kqfilter_args in between two pointers? I suppose it doesn't really matter, you are going to lose 32 bits either way on 64-bit platforms due to struct alignment but it looks a bit odd. - todd
