I want to be able to test my Linux hardware in C. How do I get the information that appears in dmesg in C? For example, for the keyboard the message is entered: AT Translated Set 2 keyboard as / devices / platform / i8042 / serio0 / input / input0 I want to get the label in my program, AT Translated Set 2 and the path, / devices / platform / i 8042 / serio0 / input / input0. Any idea how to do this?
Amit
You can also see the contents of files in / proc.
/ proc / version, / proc / ioports, / proc / iomem, / proc / meminfo and others have a lot of information in them.
/proc/bus .
usbutils pciutils, , lsusb lspci .
klogctl.
, : util-linux
libhal hal daemon. HAL , sysfs. /sys/devices /sys/bus.
HAL, sysfs , .
Source: https://habr.com/ru/post/1718468/More articles:https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1718463/php-sql-server-2005-express-to-2008-standard-problem&usg=ALkJrhigIkPSdxdjdciUNoXKWqeDw1p_IQHow can I get Hudson to continue building after a Windows command crashes? - hudsonLink macro to highlight onclick cell? - eventsВыберите запрос без дубликата "Первое письмо" в sqlite - sqliteMS SQL Server Optimizer and various table and field aliases - sqlHow to build an HQL query that connects subtitles marked with LAZY automatically? - javaCreate a new image from a cropped image - c #Какой контроль проверки asp.net я должен использовать? - c#How to simulate ThisPresentation in PowerPoint VBA - vbaSql Server Express Date Format - sql-serverAll Articles