kern_get_msqids
error = kern_get_msqids(curthread, &msqids, &size);
int kern_get_msqids(struct thread *td, struct msqid_kernel **res,