I cannot fully understand how struct ps_strings is used. As far as I understand it is used to keep a pointer to argv, envp of a process at a fixed location (the top of the user process stack) so that it is always possible to get the pointers from outside of the process.
Despite the name, I cannot find any reference to ps_strings in the ps(1) implementation, and even the kvm_getargv(3) does not seem to me is bound to ps_strings. Can someone point me to an example of using ps_strings?
Despite the name, I cannot find any reference to ps_strings in the ps(1) implementation, and even the kvm_getargv(3) does not seem to me is bound to ps_strings. Can someone point me to an example of using ps_strings?