On Tue, 20 Jan 2004, Liberty Young wrote: > > Perhaps it's my mis-understanding. From the kernel source and from Linux > Device Drivers, it seems i can give filep->private_data default values. > Quoting LDD, That's right. I've read the same book. > " > A default value for filp->private_data. The filesystem will initialize > the pointer to this value when the device is opened. The info pointer > passed to devfs_mk_dir is not used by devfs and acts as a "client data" > pointer. > " I thought you were talking about devfs_register. This routine sets the value of a pointer in an internal devfs struct. It appears that when the devfs open routine is called it sets the filep->private_data field from this before passing on the open call. -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/