title: Get 'cmdline' as exported in /proc/$PID/cmdline from Linux Kernel Code
body: <p>I'm trying to get the cmdline of a process as it is shown in /proc/$PID/cmdline by it's PID from within Kernel Context.</p>
  
  <p>I can access the task_struct and it's field "comm", which however only holds 16 characters.</p>
  
  <p>What is the best way to achieve this?</p>
  
  <p>I'm using the AOSP Wahoo Kernel</p>
  
  <p>( repo init -u <a href="https://android.googlesource.com/kernel/manifest" rel="nofollow noreferrer">https://android.googlesource.com/kernel/manifest</a> -b android-msm-wahoo-4.4-pie-qpr2 )</p>