From bb6e409e3a5f8d1b2d92eb7c5a3c4de73ea42985 Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Wed, 22 Dec 2021 17:41:59 +0100 Subject: =?UTF-8?q?expand=20docs=20to=20cover=20=E2=80=9Ckb=20{leds,flags}?= =?UTF-8?q?=E2=80=9D=20split?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lib.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') 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(fd: &F) -> Result { 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) } } -- cgit v1.2.3