Date: Thu, 5 Apr 2007 23:19:13 +0000 (UTC) From: Pawel Jakub Dawidek <pjd@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern kern_jail.c src/sys/sys jail.h Message-ID: <200704052319.l35NJDJm039654@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
pjd 2007-04-05 23:19:13 UTC FreeBSD src repository Modified files: sys/kern kern_jail.c sys/sys jail.h Log: Implement functionality I called 'jail services'. It may be used for external modules to attach some data to jail's in-kernel structure. - Change allprison_mtx mutex to allprison_sx sx(9) lock. We will need to call external functions while holding this lock, which may want to allocate memory. Make use of the fact that this is shared-exclusive lock and use shared version when possible. - Implement the following functions: prison_service_register() - registers a service that wants to be noticed when a jail is created and destroyed prison_service_deregister() - deregisters service prison_service_data_add() - adds service-specific data to the jail structure prison_service_data_get() - takes service-specific data from the jail structure prison_service_data_del() - removes service-specific data from the jail structure Reviewed by: rwatson Revision Changes Path 1.65 +244 -27 src/sys/kern/kern_jail.c 1.29 +19 -1 src/sys/sys/jail.h
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200704052319.l35NJDJm039654>