MCPcopy Create free account
hub / github.com/F-Stack/f-stack / freebsd32_kmq_setattr

Function freebsd32_kmq_setattr

freebsd/kern/uipc_mqueue.c:2773–2794  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2771}
2772
2773int
2774freebsd32_kmq_setattr(struct thread *td, struct freebsd32_kmq_setattr_args *uap)
2775{
2776 struct mq_attr attr, oattr;
2777 struct mq_attr32 attr32, oattr32;
2778 int error;
2779
2780 if (uap->attr != NULL) {
2781 error = copyin(uap->attr, &attr32, sizeof(attr32));
2782 if (error != 0)
2783 return (error);
2784 mq_attr_from32(&attr32, &attr);
2785 }
2786 error = kern_kmq_setattr(td, uap->mqd, uap->attr != NULL ? &attr : NULL,
2787 &oattr);
2788 if (error == 0 && uap->oattr != NULL) {
2789 mq_attr_to32(&oattr, &oattr32);
2790 bzero(oattr32.__reserved, sizeof(oattr32.__reserved));
2791 error = copyout(&oattr32, uap->oattr, sizeof(oattr32));
2792 }
2793 return (error);
2794}
2795
2796int
2797freebsd32_kmq_timedsend(struct thread *td,

Callers

nothing calls this directly

Calls 6

mq_attr_from32Function · 0.85
kern_kmq_setattrFunction · 0.85
mq_attr_to32Function · 0.85
bzeroFunction · 0.85
copyinFunction · 0.50
copyoutFunction · 0.50

Tested by

no test coverage detected