File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 55//! [`Bpf::load_file`](crate::Bpf::load_file) or
66//! [`Bpf::load`](crate::Bpf::load), all the maps defined in the eBPF code get
77//! initialized and can then be accessed using [`Bpf::map`](crate::Bpf::map),
8- //! [`Bpf::map_mut`](crate::Bpf::map_mut), or [`Bpf::take_map`](crate::Bpf::take_map).
8+ //! [`Bpf::map_mut`](crate::Bpf::map_mut), or
9+ //! [`Bpf::take_map`](crate::Bpf::take_map).
910//!
1011//! # Typed maps
1112//!
1213//! The eBPF API includes many map types each supporting different operations.
1314//! [`Bpf::map`](crate::Bpf::map), [`Bpf::map_mut`](crate::Bpf::map_mut), and
14- //! [`Bpf::take_map`](crate::Bpf::take_map) always return the
15- //! opaque [`&Map`](crate::maps::Map), [`&mut Map`](crate::maps::Map), and [`Map`](crate::maps::Map)
15+ //! [`Bpf::take_map`](crate::Bpf::take_map) always return the opaque
16+ //! [`&Map`](crate::maps::Map), [`&mut Map`](crate::maps::Map), and [`Map`]
1617//! types respectively. Those three types can be converted to *typed maps* using
17- //! the [`TryFrom`](std::convert::TryFrom) or [`TryInto`](std::convert::TryInto)
18- //! trait. For example:
18+ //! the [`TryFrom`] or [`TryInto`] trait. For example:
1919//!
2020//! ```no_run
2121//! # let mut bpf = aya::Bpf::load(&[])?;
Original file line number Diff line number Diff line change 1- //! Ring buffer types used to receive events from eBPF programs using the linux `perf` API.
1+ //! Ring buffer types used to receive events from eBPF programs using the linux
2+ //! `perf` API.
23//!
3- //! See the [`PerfEventArray`](crate::maps::PerfEventArray) and [`AsyncPerfEventArray`](crate::maps::perf::AsyncPerfEventArray) .
4+ //! See [`PerfEventArray`] and [`AsyncPerfEventArray`].
45#[ cfg( any( feature = "async_tokio" , feature = "async_std" ) ) ]
56#[ cfg_attr( docsrs, doc( cfg( any( feature = "async_tokio" , feature = "async_std" ) ) ) ) ]
67mod async_perf_event_array;
You can’t perform that action at this time.
0 commit comments