X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/eb6b6ca394357805f2bdba989abae309f718b4d8..f427ee49d309d8fc33ebf3042c3a775f2f530ded:/osfmk/device/iokit_rpc.c diff --git a/osfmk/device/iokit_rpc.c b/osfmk/device/iokit_rpc.c index c4c0bce85..f71023158 100644 --- a/osfmk/device/iokit_rpc.c +++ b/osfmk/device/iokit_rpc.c @@ -25,7 +25,6 @@ * * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ */ -#include #include #include #include @@ -71,6 +70,9 @@ #define EXTERN #define MIGEXTERN +LCK_GRP_DECLARE(dev_lck_grp, "device"); +LCK_MTX_DECLARE(iokit_obj_to_port_binding_lock, &dev_lck_grp); + /* * Lookup a device by its port. * Doesn't consume the naked send right; produces a device reference. @@ -185,8 +187,6 @@ iokit_release_port_send( ipc_port_t port ) ipc_port_release_send( port ); } -extern lck_mtx_t iokit_obj_to_port_binding_lock; - EXTERN void iokit_lock_port( __unused ipc_port_t port ) {