summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPhilipp Gesang <phg@phi-gamma.net>2021-12-22 17:41:59 +0100
committerPhilipp Gesang <phg@phi-gamma.net>2021-12-22 17:41:59 +0100
commitbb6e409e3a5f8d1b2d92eb7c5a3c4de73ea42985 (patch)
tree04c7ecc671232000bc29ad7f859de4b19ca46a4b /src
parent3bb3213576933dc1f43f5ed6f933cc7a8030014b (diff)
downloadvtcol-bb6e409e3a5f8d1b2d92eb7c5a3c4de73ea42985.tar.gz
expand docs to cover “kb {leds,flags}” split
Diffstat (limited to 'src')
-rw-r--r--src/lib.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 5cf62c1..374b518 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -194,6 +194,8 @@ pub mod ioctl
.map(|_| ())
}
+ /* This should perhaps return unit as the kernel supposedly always returns
+ the constant ``KB_101``. */
pub fn kdgkbtype<F: AsRawFd>(fd: &F) -> Result<libc::c_char>
{
let mut kb: libc::c_char = 0;
@@ -202,6 +204,8 @@ pub mod ioctl
ioctl(fd.as_raw_fd(), KDGKBTYPE, &mut kb as *mut _)
})?;
+ //assert_eq(kb, KB_101); /* XXX */
+
Ok(kb)
}
}