Skip to content

Instantly share code, notes, and snippets.

@myamamic
Created January 10, 2013 13:01
Show Gist options
  • Select an option

  • Save myamamic/4501906 to your computer and use it in GitHub Desktop.

Select an option

Save myamamic/4501906 to your computer and use it in GitHub Desktop.
linux kernel内でpid取得
#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