I2C fyle descriptor

Mc_bimi
Hello,
I am trying to configure the I2C Bus using fyle descriptors but I always
get the same error.

I try to open the devide as:

int I2cFd=open("/dev/i2c-0", O_RDWR);

if (I2cFd<0)
{
    fprintf( stderr, "Failed to open /dev/i2c-0: %m\n" );
    exit(1);
}

I have tried with many names:  

/dev/i2c
/dev/i2c-1
/dev/i2c/0
/dev/i2c/1
...
But I always get the error. 
Any idea??? I am starting to despair!!

I've heard that it could be smth with the kernel configuration. Could be?

davef
http://members.cox.net/ebrombaugh1/embedded/mini2440/index.html

Does that help?

Mc_bimi
Hey Davef,
Thank you for your answer,
So do you think that downloading another kernel version it could solve the
problem? Or do I have to configure it?

If you have any idea of what could be the solution I would be very grateful
to hear you. Right now I only have some hypothesis.

Thank u very much.