@ -119,7 +119,7 @@ fn detect_features() -> Features {
pubstructBpfLoader<'a>{
pubstructBpfLoader<'a>{
btf: Option<Cow<'a,Btf>>,
btf: Option<Cow<'a,Btf>>,
map_pin_path: Option<PathBuf>,
map_pin_path: Option<PathBuf>,
globals: HashMap<&'astr,&'a[u8]>,
globals: HashMap<&'astr,(&'a[u8],bool)>,
max_entries: HashMap<&'astr,u32>,
max_entries: HashMap<&'astr,u32>,
extensions: HashSet<&'astr>,
extensions: HashSet<&'astr>,
verifier_log_level: VerifierLogLevel,
verifier_log_level: VerifierLogLevel,
@ -203,6 +203,7 @@ impl<'a> BpfLoader<'a> {
}
}
/// Sets the value of a global variable.
/// Sets the value of a global variable.
/// If the `must_exist` argument is `true`, [`BpfLoader::load`] will fail with [`ParseError::SymbolNotFound`] if the loaded object code does not contain the variable.
///
///
/// From Rust eBPF, a global variable can be defined as follows:
/// From Rust eBPF, a global variable can be defined as follows: