Skip to content

Helper function bpf_get_current_task_btf

v5.11

Definition

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

Return a BTF pointer to the "current" task. This pointer can also be used in helpers that accept an ARG_PTR_TO_BTF_ID of type task_struct.

Returns

Pointer to the current task.

static struct task_struct *(* const bpf_get_current_task_btf)(void) = (void *) 158;

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