summaryrefslogtreecommitdiffstats
path: root/sys/cddl/compat/opensolaris/kern/opensolaris_string.c
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2007-04-05 23:19:13 +0000
committerpjd <pjd@FreeBSD.org>2007-04-05 23:19:13 +0000
commitf9a3a5e1fcf8549d950580dafdd7410b132e89ae (patch)
tree9ed987e18488c2d072c46b0c8e96ad41c49a8b1d /sys/cddl/compat/opensolaris/kern/opensolaris_string.c
parentfc550f34ea40aa853250faf48cf14487581ac4b0 (diff)
downloadFreeBSD-src-f9a3a5e1fcf8549d950580dafdd7410b132e89ae.zip
FreeBSD-src-f9a3a5e1fcf8549d950580dafdd7410b132e89ae.tar.gz
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
Diffstat (limited to 'sys/cddl/compat/opensolaris/kern/opensolaris_string.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud