Re: get device from file struct

2006-12-14 Thread Silviu Craciunas
On Wed, 2006-12-13 at 15:53 -0800, Stephen Hemminger wrote: > The connection between file and network device is through many > layers and there is no direct binding. It could be 0 to N interfaces > and even be data dependent. you mean protocol dependent? yes,it goes trough the layer of the vfs

Re: get device from file struct

2006-12-14 Thread Silviu Craciunas
On Wed, 2006-12-13 at 15:53 -0800, Stephen Hemminger wrote: The connection between file and network device is through many layers and there is no direct binding. It could be 0 to N interfaces and even be data dependent. you mean protocol dependent? yes,it goes trough the layer of the vfs but

Re: get device from file struct

2006-12-13 Thread Silviu Craciunas
On Wed, 2006-12-13 at 12:03 +0100, Jan Engelhardt wrote: > >> >thanks for the reply, the block device can be determined with the major > >> >and minor numbers , what I would be more interested in is if one can get > >> >the net_device struct from the file struct > >> > >> Just how are you

Re: get device from file struct

2006-12-13 Thread Silviu Craciunas
On Wed, 2006-12-13 at 10:59 +0100, Jan Engelhardt wrote: > >thanks for the reply, the block device can be determined with the major > >and minor numbers , what I would be more interested in is if one can get > >the net_device struct from the file struct > > Just how are you supposed to match

Re: get device from file struct

2006-12-13 Thread Silviu Craciunas
On Wed, 2006-12-13 at 10:59 +0100, Jan Engelhardt wrote: thanks for the reply, the block device can be determined with the major and minor numbers , what I would be more interested in is if one can get the net_device struct from the file struct Just how are you supposed to match files and

Re: get device from file struct

2006-12-13 Thread Silviu Craciunas
On Wed, 2006-12-13 at 12:03 +0100, Jan Engelhardt wrote: thanks for the reply, the block device can be determined with the major and minor numbers , what I would be more interested in is if one can get the net_device struct from the file struct Just how are you supposed to match files

Re: get device from file struct

2006-12-12 Thread Silviu Craciunas
On Mon, 2006-12-11 at 19:34 +0100, Brice Goglin wrote: > Silviu Craciunas wrote: > > quick question for the gurus.. is it possible to determine the hardware > > device from a file struct during read/write system call. For example in > > fs/read_write.c when doing a vfs_rea

Re: get device from file struct

2006-12-12 Thread Silviu Craciunas
On Mon, 2006-12-11 at 19:34 +0100, Brice Goglin wrote: Silviu Craciunas wrote: quick question for the gurus.. is it possible to determine the hardware device from a file struct during read/write system call. For example in fs/read_write.c when doing a vfs_read. file-f_dentry