% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/llama.R
\name{llama_supports_mlock}
\alias{llama_supports_mlock}
\title{Check whether memory locking is supported}
\usage{
llama_supports_mlock()
}
\value{
A logical scalar: \code{TRUE} if mlock is supported.
}
\description{
Check whether memory locking is supported
}
\examples{
# Check if memory locking is available (prevents swapping model to disk)
if (llama_supports_mlock()) {
  message("mlock available — model weights can be pinned in RAM")
}
}
