---
name: "function::modname"
section: "3stap"
platform: "linux"
package: "systemtap-doc"
version: "5.1-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/function::modname"
---

# function::modname(3stap)

Return the kernel module name loaded at the address

## NAME

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

## SYNOPSIS

```
    modname:string(addr:long)
```

## ARGUMENTS

*addr*

The address to map to a kernel module name

## 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

[*tapset::context-symbols*(3stap)](/tapset::context-symbols/3stap.md)
