DragonFly submit List (threaded) for 2008-01
DragonFly BSD
DragonFly submit List (threaded) for 2008-01
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: mention msleep() in porting_drivers.txt


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxx>
Date: Sun, 6 Jan 2008 14:46:26 -0800 (PST)

:Agreed. The reason I didn't just add an example for MTX_SPIN mutexes is
:precisely not to encourage just blindly copying FreeBSD's fine-grained
:locking. Explaining alternative strategies and tradeoffs would require
:a seperate article of its own though.
:
:Aggelos

    Yah, I far prefer that people use lockmgr locks for most porting from
    FreeBSD, if only to make debugging far, far easier.  They aren't half
    bad... over the years I've removed a lot of cruft from the lockmgr API,
    it's actually pretty efficient.

    The interrupt serializer is the best locking mechanism to use for drivers
    which have interrupt service routines, but requires a bit more research
    to use properly in a port vs lockmgr locks.

					-Matt
					Matthew Dillon 
					<dillon@backplane.com>



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