What type of locking is needed for ss/sidtab.c?
Hiten Pandya
hiten at angelica.unixdaemons.com
Tue Jul 23 19:50:35 GMT 2002
Hello.
Hope this mail finds you in the best of health. Anyway, I have been
trying to help out in the TrustedBSD project. I encountered some code
in the SEBSD/ss/sidtab.c file, where SIDTAB_LOCK() and SIDTAB_UNLOCK()
are currently blank macros.
I saw that in the linux case, it uses safe_up() and safe_down(), which
are basically "lock" and "unlock" in FreeBSD terminology. Also, I
believe according to my experience, that normal MTX_DEF type mutexes
should do unless the code was using read/write semaphores which it
doesnt. And also, safe_up() and safe_down() interface is deprecated in
Linux 2.5.x series afaik.
Please let me know what type of locking is needed so that I can continue
with it.
Thanking you in advance.
Regards.
--
Hiten Pandya
http://www.unixdaemons.com/~hiten
hiten at unixdaemons.com, hiten at uk.FreeBSD.org, hiten at xMach.org
PGP: http://pgp.mit.edu:11371/pks/lookup?search=Hiten+Pandya&op=index
To Unsubscribe: send mail to majordomo at trustedbsd.org
with "unsubscribe trustedbsd-discuss" in the body of the message
More information about the trustedbsd-discuss
mailing list