@wsgi.response(202)
    @extensions.expected_errors(404)
    @wsgi.action('lock')
    def _lock(self, req, id, body):
        context = req.environ['nova.context']
        authorize(context, action='lock')
        instance = common.get_instance(self.compute_api, context, id)
        self.compute_api.lock(context, instance)
Returns a device memory object that is used as the argument.
dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/api/openstack/compute/lock_server.py/LockServerController._lock--crossover with--dataset/ETHPy150Open numba/numba/numba/cuda/cudadrv/devicearray.py/DeviceNDArrayBase.as_cuda_arg