diff options
author | Philipp Gesang <phg@phi-gamma.net> | 2021-12-22 17:41:59 +0100 |
---|---|---|
committer | Philipp Gesang <phg@phi-gamma.net> | 2021-12-22 17:41:59 +0100 |
commit | bb6e409e3a5f8d1b2d92eb7c5a3c4de73ea42985 (patch) | |
tree | 04c7ecc671232000bc29ad7f859de4b19ca46a4b /src | |
parent | 3bb3213576933dc1f43f5ed6f933cc7a8030014b (diff) | |
download | vtcol-bb6e409e3a5f8d1b2d92eb7c5a3c4de73ea42985.tar.gz |
expand docs to cover “kb {leds,flags}” split
Diffstat (limited to 'src')
-rw-r--r-- | src/lib.rs | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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) } } |