Skip to content

Helper function bpf_d_path

v5.10

Definition

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

Return full path for given struct path object, which needs to be the kernel BTF path object. The path is returned in the provided buffer buf of size sz and is zero terminated.

Returns

On success, the strictly positive length of the string, including the trailing NUL character. On error, a negative value.

static long (* const bpf_d_path)(struct path *path, char *buf, __u32 sz) = (void *) 147;

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