'How can I get a kernel variable 'cs_flags' from normal machine in ios?

struct proc *p;
p = current_proc();
/* CS_KILL triggers a kill signal, and no you can't have the page. Nothing else. */
if (p->p_csflags & CS_KILL) {
    p->p_csflags |= CS_KILLED;
    cs_procs_killed++;
    send_kill = 1;
    retval = 1;
}

cs_flags looks like a kernel variable, how can I get it in normal machine(not jailbreak) in ios? Is it possible?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source