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

# function::atomic\_long\_read(3stap)

Retrieves an atomic long variable from kernel memory

## NAME

function::atomic\_long\_read - Retrieves an atomic long variable from kernel memory

## SYNOPSIS

```
    atomic_long_read:long(addr:long)
```

## ARGUMENTS

*addr*

pointer to atomic long variable

## DESCRIPTION

Safely perform the read of an atomic long variable. This will be a NOP on kernels that do not have ATOMIC\_LONG\_INIT set on the kernel config.

## SEE ALSO0

[*tapset::atomic*(3stap)](/tapset::atomic/3stap.md)
