Replacing FBSD mutexes

elekktretterr at exemail.com.au elekktretterr at exemail.com.au
Tue Oct 23 01:47:24 PDT 2012


I'm working on a new port of the nvidia driver to learn more about OS
programming.

What is the proper way to replace FreeBSD mutex locks?

Such as:

mtx_init(&mtx->mutex_mtx, "os.mutex_mtx", NULL, MTX_DEF | MTX_RECURSE);

mtx_lock(&mtx->mutex_mtx);

Petr




More information about the Users mailing list