#### 12.7.4 Function Locking

It is sometime desirable to lock a function into memory with the `mlock` function. This is typically used for dynamically linked functions in Oct-files or mex-files, that contain some initialization, and it is desireable that a `clear` does not remove this initialization.

This might equally be used to prevent changes to a function from having effect in Octave, though a similar effect can be had with the `ignore_function_time_stamp` function.

— Built-in Function: mlock (name)

> Lock the named function into memory. If no function is named then lock in the current function.

> See also: munlock, mislocked, persistent.

— Built-in Function: munlock (fcn)

> Unlock the named function. If no function is named then unlock the current function.

> See also: mlock, mislocked, persistent.

— Built-in Function: mislocked (fcn)

> Return true if the named function is locked. If no function is named then return true if the current function is locked.

> See also: mlock, munlock, persistent.