From afa61c64a6326d436e9d06947c92fbf20c4bc11c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vegard=20Kamsv=C3=A5g?= Date: Tue, 26 Nov 2024 14:53:00 +0100 Subject: [PATCH] aya: fix docs --- aya/src/af_xdp/mod.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/aya/src/af_xdp/mod.rs b/aya/src/af_xdp/mod.rs index 54493c8f..bfcd7aaf 100644 --- a/aya/src/af_xdp/mod.rs +++ b/aya/src/af_xdp/mod.rs @@ -4,12 +4,12 @@ //! for access to all four rings, binding to a specific `(ifname, queue_id)`, and for creating the //! memory mapping to interact with all these queues directly. //! -//! Please see https://docs.kernel.org/networking/af_xdp.html for a detailed explanation of AF_XDP. +//! Please see for a detailed explanation of AF_XDP. //! //! The entrypoint to the module is an instance of [`XdpSocketBuilder`], or for power users -//! the more low-level [`crate::Umem`]. +//! the more low-level [`crate::af_xdp::Umem`]. //! -//! This module builds upon the `xdpilone` crate (https://crates.io/crates/xdpilone), with +//! This module builds upon the `xdpilone` crate (), with //! some (optional) abstractions on top. use std::{borrow::Cow, ffi::NulError, io::Error}; @@ -32,7 +32,7 @@ pub enum XskError { /// The errno errno: i32, }, - /// Error creating a [`CString`] + /// Error creating a [`std::ffi::CString`] #[error("nul error")] NulError(#[from] NulError), @@ -57,7 +57,7 @@ pub enum AllocationError { } impl<'a> XskError { - /// Create an error from the latest [`errno`]. + /// Create an error from the latest `errno`. pub fn last_os_error() -> Self { Self::Errno { errno: Error::last_os_error().raw_os_error().unwrap_or(-1),