Skip to content

Instantly share code, notes, and snippets.

View rbtcollins's full-sized avatar
💭
I may be slow to respond.

Robert Collins rbtcollins

💭
I may be slow to respond.
View GitHub Profile
pkt-get on eth0
```
[ 171.678486] 373.942625 [3255] netmap_init run mknod /dev/netmap c 10 53 # error 0
[ 171.678530] netmap: loaded module
[ 191.078585] 393.342827 [1190] generic_netmap_attach Created generic NA ffff8801f913b000 (prev (null))
[ 191.112529] 393.376778 [2013] netmap_do_regif lut ffffc90000ffb000 bufs 163840 size 2048
[ 191.112579] 393.376827 [ 390] generic_netmap_register Generic adapter ffff8801f913b000 goes on
[ 191.112615] 393.376862 [ 441] generic_netmap_register RX ring 0 of generic adapter ffff8801f913b000 goes on
[ 191.112652] 393.376897 [ 451] generic_netmap_register TX ring 0 of generic adapter ffff8801f913b000 goes on
[ 191.113897] 393.378080 [ 475] generic_qdisc_init Qdisc #0 initialized with max_len = 1024
@rbtcollins
rbtcollins / syncerror.rs
Created April 26, 2021 21:05
error-chain migration support
/// Inspired by failure::SyncFailure, but not identical.
///
/// SyncError does not grant full safety: it will panic when errors are used
/// across threads (e.g. by threaded error logging libraries). This could be
/// fixed, but as we don't do that within rustup, it is not needed. If using
/// this code elsewhere, just hunt down and remove the unchecked unwraps.
pub struct SyncError<T: 'static> {
inner: Arc<Mutex<T>>,
proxy: Option<CauseProxy<T>>,