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.
I can access the task_struct and it's field "comm", which however only holds 16 characters.
What is the best way to achieve this?
I'm using the AOSP Wahoo Kernel
( repo init -u https://android.googlesource.com/kernel/manifest -b android-msm-wahoo-4.4-pie-qpr2 )