File tree 2 files changed +8
-7
lines changed
2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 5
5
//! [`Bpf::load_file`](crate::Bpf::load_file) or
6
6
//! [`Bpf::load`](crate::Bpf::load), all the maps defined in the eBPF code get
7
7
//! 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).
9
10
//!
10
11
//! # Typed maps
11
12
//!
12
13
//! The eBPF API includes many map types each supporting different operations.
13
14
//! [`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`]
16
17
//! 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:
19
19
//!
20
20
//! ```no_run
21
21
//! # 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.
2
3
//!
3
- //! See the [`PerfEventArray`](crate::maps::PerfEventArray) and [`AsyncPerfEventArray`](crate::maps::perf::AsyncPerfEventArray) .
4
+ //! See [`PerfEventArray`] and [`AsyncPerfEventArray`].
4
5
#[ cfg( any( feature = "async_tokio" , feature = "async_std" ) ) ]
5
6
#[ cfg_attr( docsrs, doc( cfg( any( feature = "async_tokio" , feature = "async_std" ) ) ) ) ]
6
7
mod async_perf_event_array;
You can’t perform that action at this time.
0 commit comments