Raises the interrupt priority, and locks a simple lock if necessary.
Item | Description |
---|---|
int_pri | Specifies the interrupt priority to set. |
lock_addr | Specifies the address of the lock word to lock. |
The disable_lock kernel service raises the interrupt priority, and locks a simple lock if necessary, in order to provide optimized thread-interrupt critical section protection for the system on which it is executing. On a multiprocessor system, calling the disable_lock kernel service is equivalent to calling the i_disable and simple_lock kernel services. On a uniprocessor system, the call to the simple_lock service is not necessary, and is omitted. However, you should still pass a valid lock address to the disable_lock kernel service. Never pass a NULL lock address.
The disable_lock kernel service can be called from either the process or interrupt environment.
The disable_lock kernel service returns the previous interrupt priority.