Skip to content

Helper function bpf_kallsyms_lookup_name

v5.16

Definition

Copyright (c) 2015 The Libbpf Authors. All rights reserved.

Get the address of a kernel symbol, returned in res. res is set to 0 if the symbol is not found.

Returns

On success, zero. On error, a negative value.

-EINVAL if flags is not zero.

-EINVAL if string name is not the same size as name_sz.

-ENOENT if symbol is not found.

-EPERM if caller does not have permission to obtain kernel address.

static long (* const bpf_kallsyms_lookup_name)(const char *name, int name_sz, int flags, __u64 *res) = (void *) 179;

Usage

Docs could be improved

This part of the docs is incomplete, contributions are very welcome

Program types

This helper call can be used in the following program types:

Example

Docs could be improved

This part of the docs is incomplete, contributions are very welcome