hal_set_lock(3hal)

hal_set_lock3hal

Set or get the hal lock level

Usage

int hal_set_lock(unsigned char lock_type)

int hal_get_lock()

Arguments

lock_type

The desired lock type, which may be a bitwise combination of: HAL_LOCK_LOAD, HAL_LOCK_CONFIG, HAL_LOCK_PARAMS, or HAL_LOCK_PARAMS. HAL_LOCK_NONE or 0 locks nothing, and HAL_LOCK_ALL locks everything.

Overview

Return value

hal_set_lock Returns a HAL status code. hal_get_lock returns the current HAL lock level or a HAL status code.

Releases

Unchanged in 2 releases since Debian 12 (Bookworm).

  1. 12–13

From linuxcnc-uspace-dev 1:2.9.4-2+deb13u1 in Debian 13 (Trixie). Parsed by carta from the page's man source.