Lines Matching +full:string +full:- +full:support
1 .. SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause)
8 provides cgroup-bpf hook for sysctl.
31 (``1``). This field is read-only.
34 or written. This field is read-write. Writing to the field sets the starting
38 when it's called by user space on ``file_pos > 0``. Writing non-zero
40 specified ``file_pos``. Not all sysctl support access with ``file_pos !=
55 If program returns ``0`` user space will get ``-1`` from ``read(2)`` or
67 * ``bpf_sysctl_get_current_value()`` to get string value currently held by
71 * ``bpf_sysctl_get_new_value()`` to get new string value currently being
73 on ``ctx->write == 1``;
75 * ``bpf_sysctl_set_new_value()`` to override new string value currently being
77 overridden starting from the current ``ctx->file_pos``. If the whole value
79 to the helper. This helper can be used only on ``ctx->write == 1``. New
80 string value set by the helper is treated and verified by kernel same way as
81 an equivalent string passed by user space.
84 i.e. as a string. Since many sysctl values represent an integer or a vector
86 string:
88 * ``bpf_strtol()`` to convert initial part of the string to long integer
90 * ``bpf_strtoul()`` to convert initial part of the string to unsigned long
99 sysctl name and value, parses string value to get vector of integers and uses
116 As with any cgroup-bpf program additional care should be taken if an
122 .. _strtol(3): http://man7.org/linux/man-pages/man3/strtol.3p.html
123 .. _strtoul(3): http://man7.org/linux/man-pages/man3/strtoul.3p.html