FUNCTION::MODNAME(3stap) Context Functions FUNCTION::MODNAME(3stap)

# [NAME](#NAME)

function::modname - Return the kernel module name loaded at the address

# [SYNOPSIS](#SYNOPSIS)

```


    modname:string(addr:long)
```

# [ARGUMENTS](#ARGUMENTS)

*addr*

The address to map to a kernel module name

# [DESCRIPTION](#DESCRIPTION)

Returns the module name associated with the given address if known. If not known it will raise an error. If the address was not in a kernel module, but in the kernel itself, then the string “kernel” will be returned.

# [SEE ALSO0](#SEE_ALSO0)

[*tapset::context-symbols*(3stap)](/man/enterprise-packages/systemtap/tapset::context-symbols.3stap)

September 2026 SystemTap Tapset Reference Ver

---

Document: function::modname(3stap) from systemtap 5.6-r0 (Chainguard OS)
Source: https://sourceware.org/git/systemtap.git
