Hi, from yr driver read()and write(), I would use the "current" pointer like in current->comm (command name) current->pid (pid) current pooint on the task_struct -jfs > -----Original Message----- > From: kernelnewbies-bounce@nl.linux.org > [mailto:kernelnewbies-bounce@nl.linux.org]On Behalf Of Suresh P > Sent: Wednesday, September 10, 2003 10:51 AM > To: kernelnewbies@nl.linux.org > Subject: hi ..reg Drivers > > > 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/