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

# function::set\_user\_string(3stap)

Writes a string to user memory

## NAME

function::set\_user\_string - Writes a string to user memory

## SYNOPSIS

```
    set_user_string(addr:long,val:string)
```

## ARGUMENTS

*addr*

The user address to write the string to

*val*

The string which is to be written

## DESCRIPTION

Writes the given string to a given user memory address. Reports an error when writing to the given address fails. Requires the use of guru mode (-g).

## SEE ALSO0

[*tapset::uconversions-guru*(3stap)](/tapset::uconversions-guru/3stap.md)
