kern_get_shmsegs
error = kern_get_shmsegs(curthread, &shmids, &size);
int kern_get_shmsegs(struct thread *td, struct shmid_kernel **res,