LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Global variable "sensors_proc_chips" is NULL after installing lm-sensor package . (https://www.linuxquestions.org/questions/linux-newbie-8/global-variable-sensors_proc_chips-is-null-after-installing-lm-sensor-package-4175551607/)

viveksr89 08-24-2015 02:07 PM

Global variable "sensors_proc_chips" is NULL after installing lm-sensor package .
 
hi All
I have installed the lm-sensors package on my ubuntu machine , i have also checked that "sensord" daemon is running and Output of command
"sensor" is showing output of "tempreture" and speed of FAN but when i am trying to read the global structure variable "sensors_proc_chips" through API "sensors_get_detected_chips()" but getting global structure variable "sensors_proc_chips" as NULL .

Can any one please help here ?

I am using lm_sensors-3.4.0 .

Regards
Vivek srivastva

smallpond 08-25-2015 08:33 AM

Line 42 of your code is wrong.


All times are GMT -5. The time now is 12:25 AM.