Kmod driver at iicbus. attach() and config_intrhook(9)

Alexander Mishin mishin at mh.net.ru
Tue Sep 1 15:21:23 UTC 2020


Andriy Gapon писал 2020-09-01 09:51:
> On 01/09/2020 03:26, John-Mark Gurney wrote:
>> Ok, then the OP shouldn't be having a problem then, maybe you can help
>> then figure it out then?
> 
> Was there actually any problem?
> I thought that OP was just inquiring about the pattern commonly seen
> in the code.
> 
> Alexander Mishin wrote:
>> But I see that some other devices (from /usr/src/sys/dev) uses 
>> CONFIG_INTRHOOK(9)
>> on attach() for initialize themselfs.
>> I wonder if I need this too? ...or maybe... when I might need it?

Yes, exactly. And I quite understood about using config_intrhook(9), 
thank you all!
...but still interesting to read if the need for this would be removed 
for the twsi controller.


More information about the freebsd-arm mailing list