mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-03-08 01:04:43 +01:00
lib: add cgroup BPF helpers
Add bpf_cgrp_storage_get and bpf_cgrp_storage_delete from libbpf helpers. Signed-off-by: inge4pres <fgualazzi@gmail.com>
This commit is contained in:
parent
d7f90722f7
commit
29e52aa040
2 changed files with 3 additions and 0 deletions
|
|
@ -223,3 +223,5 @@ pub const tcp_raw_check_syncookie_ipv4: *align(1) const fn (?*kern.IpHdr, ?*TcpH
|
|||
pub const tcp_raw_check_syncookie_ipv6: *align(1) const fn (?*kern.Ipv6Hdr, ?*TcpHdr) c_long = @ptrFromInt(207);
|
||||
pub const ktime_get_tai_ns: *align(1) const fn () u64 = @ptrFromInt(208);
|
||||
pub const user_ringbuf_drain: *align(1) const fn (?*anyopaque, ?*anyopaque, ?*anyopaque, u64) c_long = @ptrFromInt(209);
|
||||
pub const cgrp_storage_get: *align(1) const fn (?*anyopaque, ?*kern.Cgroup, ?*anyopaque, u64) ?*anyopaque = @ptrFromInt(210);
|
||||
pub const cgrp_storage_delete: *align(1) const fn (?*anyopaque, ?*kern.Cgroup) c_long = @ptrFromInt(211);
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@ pub const BpfSock = opaque {};
|
|||
pub const BpfSockAddr = opaque {};
|
||||
pub const BpfSockOps = opaque {};
|
||||
pub const BpfTimer = opaque {};
|
||||
pub const Cgroup = opaque {};
|
||||
pub const FibLookup = opaque {};
|
||||
pub const File = opaque {};
|
||||
pub const Inode = opaque {};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue