linux-i2c.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Request for help: accessing i2c from kernel module
@ 2013-05-29 12:56 CF
  0 siblings, 0 replies; only message in thread
From: CF @ 2013-05-29 12:56 UTC (permalink / raw)
  To: linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org

Hello,

Excuse me if the question have been already answered or is obvious, but 
i don't know actually how to reach i2c busses from a kernel module (the 
kernel module is cross compiled).

The user space /dev/i2c-x are not accessibles - or i'm unable to reach 
them. I suspect i have an issue because if i understand well, /dev/i2c-x 
is logically only available in user space. The error returned is the 
following:
"error: implicit declaration of function 'ioctl'"
and i fear it could be the same for open(), because if i comment my 
ioctl calls, it does not issue an error but a warning related to 'open 
undefined'.

I can successfully write user space librairies, and compile the great 
i2ctools suite.
I have actually theses includes:
#include <linux/kernel.h>
#include <linux/module.h>

#include <linux/i2c-dev.h>
#include <fcntl.h>
#include <linux/fs.h>

Thank you very much if you can point me to some documentations where i 
could use i2c from a kernel module.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-05-29 12:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-29 12:56 Request for help: accessing i2c from kernel module CF

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).