title | description |
---|---|
Syscall command 'BPF_LINK_GET_FD_BY_ID' |
This page documents the 'BPF_LINK_GET_FD_BY_ID' eBPF syscall command, including its defintion, usage, program types that can use it, and examples. |
This syscall command is used to get a file descriptor to an already loaded link via its unique identifier.
This command will return the file descriptor of the link (positive integer) or an error number (negative integer) if something went wrong.
This command is used to get a file descriptor to link so that you might use it in other syscall commands. This mechanism is usually used by inspection tools in combination with the BPF_OBJ_GET_INFO_BY_FD
.
This field holds the unique identifier of the link for which a file descriptor should be opened.