Link to home
Start Free TrialLog in
Avatar of karana
karana

asked on

current->pid

hello ,


 i m  beginner to device drivers . Can any  one show me a code to print current->pid




Avatar of koppcha
koppcha
Flag of United States of America image

echo $$
Avatar of Tintin
Tintin

What language? C?

koppcha - he wouldn't be writing a device driver as a shell script.
oh ok since i am in linux_programming section i have given that shell command.I am not aware of what you were saying :)
Assuming it is C, then do

man getpid
ASKER CERTIFIED SOLUTION
Avatar of koppcha
koppcha
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial