Re: Getting Information from Multiple nodes

2011-11-17 Thread Praveen kumar
Thanks Anish .. I got your point . I was using struct inode *inode = file->f_dentry->d_inode; min = iminor(inode); to see which node has been opened, I wanted to make sure myself the correct/best way of getting this information. Praveen On Wed, Nov 16, 2011 at 8:02 PM, anish kumar wrote: > On

Re: Getting Information from Multiple nodes

2011-11-16 Thread anish kumar
On Wed, 2011-11-16 at 18:00 +0530, Praveen kumar wrote: > Hi All, > I have a I2C chip driver,and there are two identical chips on > two different i2c bus. > I have registered the driver and initialized it and created two > nodes /dev/chip_0 and /dev/chip_1 > > If I open the node from user

Getting Information from Multiple nodes

2011-11-16 Thread Praveen kumar
Hi All, I have a I2C chip driver,and there are two identical chips on two different i2c bus. I have registered the driver and initialized it and created two nodes /dev/chip_0 and /dev/chip_1 If I open the node from user how will I make driver identify which device to access .ie in the ioct