lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <4CC98A3C.5010903@ladisch.de>
Date:	Thu, 28 Oct 2010 16:35:40 +0200
From:	Clemens Ladisch <clemens@...isch.de>
To:	Matthias Dunda <user254@...17.greatnet.de>
CC:	linux-kernel@...r.kernel.org
Subject: Re: Reading temperature from another Kernel modules

Matthias Dunda wrote:
> BUT: how do I get the temp? Most of the internal functions require a
> struct device or a struct i2c_client, which - I assume - are perfectly
> provided by the kernel when going the way over the proc file system.
> 
> I tried to statically save such a struct during the probing process
> (this is the above my_local_client), but this works neither. When I
> use the saved struct to call jc42_read_value, I always get a
> temperature value which is not correct at all.

Is that saved pointer actually the same?  (Put printk()s in both your
function and some sysfs-called function.)


Regards,
Clemens
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ