Skip to content

Commit

Permalink
Fix typo in BPF_LINK_CREATE.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Jongy authored and dylandreimerink committed Jan 13, 2025
1 parent bd784f6 commit 4d841a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/linux/syscall/BPF_LINK_CREATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ This syscall command create a new BPF link. BPF links are the newest and thus pr

## Return type

If successful, this syscall command will return a file descriptor to the newly created link. The link is a reference counted object just like other BPF objects. The link is destroyed once no more references to it exist, which might happen if the loader exists without pinning the link or if the pin gets deleted. A loader might also chose to forcefully cause the link to detach from the hook point with the [`BPF_LINK_DETACH`](BPF_LINK_DETACH.md) command.
If successful, this syscall command will return a file descriptor to the newly created link. The link is a reference counted object just like other BPF objects. The link is destroyed once no more references to it exist, which might happen if the loader exits without pinning the link or if the pin gets deleted. A loader might also chose to forcefully cause the link to detach from the hook point with the [`BPF_LINK_DETACH`](BPF_LINK_DETACH.md) command.

The returned file descriptor can be used with the [`BPF_LINK_UPDATE`](BPF_LINK_UPDATE.md) and [`BPF_LINK_DETACH`](BPF_LINK_DETACH.md) commands.

Expand Down

0 comments on commit 4d841a2

Please sign in to comment.