devctl (alike?) for devfs

Andriy Gapon avg at icyb.net.ua
Fri Apr 25 14:43:16 UTC 2008


on 25/04/2008 17:36 Kostik Belousov said the following:
> The malloc and free cannot be called while holding dev_mtx, this causes
> the LORs. Please, look at the rev. 1.207, 1.210 of the kern/kern_conf.c
> for the workarounds for the malloc issues. It seems that you may abuse the
> dev_unlock_and_free() to make the notifications.
> 
> Also, I think it is wrong to establish the lock ordering relations
> between the process subsystem and cdev.

Thank you for hand-guiding me!
This seems to be a bit more complex than I originally thought, so I 
guess I'll have to get back to this after vacation (I want to stay as 
far from computers as possible during it).

-- 
Andriy Gapon


More information about the freebsd-hackers mailing list