From: steven j. <py...@li...> - 2002-10-07 21:18:28
|
Greetings, It's not really very hard. Most of the sensor dirvers will keep an array of client structures and have an update function that expects a pointer to that struct. The struct itself has a pointer to a data struct with the actual sensor data. I generally just add a line in the probe function to store the client structs in a different array just for supermon. The convert_value function calls the update function, then just formats the data for proc. I have drivers for sis950, Winbond w83781d, and adm1021 if they would help. G'day, sjames On Mon, 7 Oct 2002, Wilton Wong wrote: > > On Mon, 07 Oct 2002, steven james wrote: > > > Currently, I'm using method number 3. But I need to update to the latest > > release and evaluate if that is still how I want to go. > > I see some of your code inside the newest supermon packages.. how hard is it to > add new sensor chips ? > > - Wilton > > ----[ Wilton William Wong ]--------------------------------------------- > 11060-166 Avenue Ph : 01-780-456-9771 High Performance UNIX > Edmonton, Alberta FAX: 01-780-456-9772 and Linux Solutions > T5X 1Y3, Canada URL: http://www.harddata.com > -------------------------------------------------------[ Hard Data Ltd. ]---- > -- -------------------------steven james, director of research, linux labs ... ........ ..... .... 230 peachtree st nw ste 701 the original linux labs atlanta.ga.us 30303 -since 1995 http://www.linuxlabs.com office 404.577.7747 fax 404.577.7743 ----------------------------------------------------------------------- |