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

# function::rlimit\_from\_str(3stap)

Symbolic string associated with resource limit code

## NAME

function::rlimit\_from\_str - Symbolic string associated with resource limit code

## SYNOPSIS

```
    rlimit_from_str:long(lim_str:string)
```

## ARGUMENTS

*lim\_str*

The string representation of limit

## DESCRIPTION

This function returns the number associated with the given string, such as 0 for the string RLIMIT\_CPU, or -1 for an out-of-range value.

## SEE ALSO0

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