1FUNCTION::USER_STRIN(3staSpt)ring and data retrieving fFuUnNCTION::USER_STRIN(3stap)
2
3
4

NAME

6       function::user_string_n - Retrieves string of given length from user
7       space
8

SYNOPSIS

10       1) user_string_n:string(addr:long,n:long)
11
12       2) user_string_n:string(addr:long,n:long,err_msg:string)
13

ARGUMENTS

15       addr
16           the user space address to retrieve the string from
17
18       n
19           the maximum length of the string (if not null terminated)
20
21       err_msg
22           the error message to return when data isn't available
23

DESCRIPTION

25       1) Returns the C string of a maximum given length from a given user
26       space address. Reports an error on the rare cases when userspace data
27       is not accessible at the given address.
28
29       2) Returns the C string of a maximum given length from a given user
30       space address. Returns the given error message string on the rare cases
31       when userspace data is not accessible at the given address.
32

SEE ALSO

34       tapset::uconversions(3stap)
35
36
37
38SystemTap Tapset Reference         June 2018       FUNCTION::USER_STRIN(3stap)
Impressum