Created
January 10, 2013 13:01
-
-
Save myamamic/4501906 to your computer and use it in GitHub Desktop.
linux kernel内でpid取得
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <asm/current.h> | |
| pid_t pid = current->tgid; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment