HI suresh, You can make use of current structure in the driver to know the pid that is currently accessing the dirver. current->pid Ravi On Wed, 2003-09-10 at 04:51, Suresh P wrote: > hi > its Suresh Potluri. i recently joined this group. > Its my first posting. > i have created one pseudo driver. two processes are accessing the device > associated with the driver. two processes can access read & open entry > points. In driver Read/Write Functions, i want to know on behalf of which > process the driver read/write function is executing. > any help is gratefully . > thanks in advance > > regards > -potluri > +++++++++++++++++++++++++++++++ Disclaimer +++++++++++++++++++++++++++++++++++++++ > > This e-mail may contain privileged and confidential information and is intended only for > the use of the specific individual(s) to whom it is addressed. If you are not an intended > recipient of this e-mail, you are hereby notified that any unauthorized use, dissemination > or copying of this e-mail or the information contained in it or attached to it is strictly prohibited. > If you have received this e-mail in error, please delete it and immediately notify the undersigned > by reply e-mail. > Hellosoft India Pvt. Ltd. www.hellosoft.com > +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > > > > -- > Kernelnewbies: Help each other learn about the Linux kernel. > Archive: http://mail.nl.linux.org/kernelnewbies/ > FAQ: http://kernelnewbies.org/faq/ -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/