/kernel/liteos_m/kal/libc/newlib/porting/include/ |
D | mqueue.h | 43 struct mq_attr { struct 50 int mq_getattr(mqd_t personal, struct mq_attr *attr); argument 54 int mq_setattr(mqd_t personal, const struct mq_attr *__restrict new, struct mq_attr *__restrict old…
|
/kernel/liteos_m/testsuites/unittest/xts/ipc/msg_queue/ |
D | mq_test.c | 55 struct mq_attr getAttr = { 0 }; 56 struct mq_attr setAttr = { 0 }; 99 struct mq_attr getAttr = { 0 }; 100 struct mq_attr setAttr = { 0 }; 145 struct mq_attr getAttr = { 0 }; 146 struct mq_attr setAttr = { 0 }; 195 struct mq_attr getAttr = { 0 }; 196 struct mq_attr setAttr = { 0 }; 237 struct mq_attr getAttr = { 0 }; in PthreadCom() 264 struct mq_attr getAttr = { 0 }; [all …]
|
D | mq_exp_test.c | 55 struct mq_attr attr = { 0 }; 56 struct mq_attr getAttr = { 0 }; 98 struct mq_attr attr = { 0 }; 99 struct mq_attr getAttr = { 0 }; 135 struct mq_attr attr = { 0 }; 166 struct mq_attr attr = { 0 }; 228 struct mq_attr attr = { 0 }; 279 struct mq_attr attr = { 0 }; 312 struct mq_attr attr = { 0 }; 351 struct mq_attr attr = { 0 }; [all …]
|
/kernel/linux/linux-5.10/tools/testing/selftests/mqueue/ |
D | mq_open_tests.c | 68 static inline void test_queue(struct mq_attr *attr, struct mq_attr *result); 69 static inline int test_queue_fail(struct mq_attr *attr, struct mq_attr *result); 200 static inline void test_queue(struct mq_attr *attr, struct mq_attr *result) in test_queue() 222 static inline int test_queue_fail(struct mq_attr *attr, struct mq_attr *result) in test_queue_fail() 241 struct mq_attr attr, result; in main()
|
/kernel/liteos_m/kal/posix/src/ |
D | mqueue.c | 179 STATIC struct mqpersonal *DoMqueueCreate(const struct mq_attr *attr, const CHAR *mqName, INT32 open… in DoMqueueCreate() 266 struct mq_attr *attr = NULL; in mq_open() 267 struct mq_attr defaultAttr = { 0, MQ_MAX_MSG_NUM, MQ_MAX_MSG_LEN, 0, {0} }; in mq_open() 287 attr = va_arg(ap, struct mq_attr *); in mq_open() 291 (VOID)memcpy_s(&defaultAttr, sizeof(struct mq_attr), attr, sizeof(struct mq_attr)); in mq_open() 372 int OsMqGetAttr(mqd_t personal, struct mq_attr *mqAttr) in OsMqGetAttr() 399 int OsMqSetAttr(mqd_t personal, const struct mq_attr *mqSetAttr, struct mq_attr *mqOldAttr) in OsMqSetAttr() 428 static int MqGetSetAttr(mqd_t mqd, const struct mq_attr *new, struct mq_attr *old) in MqGetSetAttr() 436 int mq_getattr(mqd_t mqd, struct mq_attr *attr) in mq_getattr() 445 int mq_setattr(mqd_t mqd, const struct mq_attr *new, struct mq_attr *old) in mq_setattr()
|
/kernel/liteos_a/syscall/ |
D | ipc_syscall.c | 61 mqd_t SysMqOpen(const char *mqName, int openFlag, mode_t mode, struct mq_attr *attr) in SysMqOpen() 106 int SysMqGetSetAttr(mqd_t mqd, const struct mq_attr *new, struct mq_attr *old) in SysMqGetSetAttr() 109 struct mq_attr knew; in SysMqGetSetAttr() 110 struct mq_attr kold = { 0 }; in SysMqGetSetAttr() 113 ret = LOS_ArchCopyFromUser(&knew, new, sizeof(struct mq_attr)); in SysMqGetSetAttr() 124 ret = LOS_ArchCopyToUser(old, &kold, sizeof(struct mq_attr)); in SysMqGetSetAttr()
|
/kernel/liteos_a/compat/posix/include/ |
D | mqueue.h | 120 struct mq_attr { struct 342 extern int mq_getsetattr(mqd_t personal, const struct mq_attr *mqSetAttr, struct mq_attr *MqOldAttr…
|
/kernel/linux/linux-5.10/ipc/ |
D | mqueue.c | 142 struct mq_attr attr; 294 struct mq_attr *attr) in mqueue_get_inode() 570 struct mq_attr *attr = arg; in mqueue_create_attr() 868 struct mq_attr *attr) in prepare_open() 894 struct mq_attr *attr) in do_mq_open() 943 struct mq_attr __user *, u_attr) in SYSCALL_DEFINE4() 945 struct mq_attr attr; in SYSCALL_DEFINE4() 946 if (u_attr && copy_from_user(&attr, u_attr, sizeof(struct mq_attr))) in SYSCALL_DEFINE4() 1452 static int do_mq_getsetattr(int mqdes, struct mq_attr *new, struct mq_attr *old) in do_mq_getsetattr() 1497 const struct mq_attr __user *, u_mqstat, in SYSCALL_DEFINE3() [all …]
|
/kernel/liteos_m/testsuites/unittest/posix/src/mqueue/ |
D | mqueue_func_test.c | 104 struct mq_attr attr = { 0 }; 174 struct mq_attr attr = {0}; 334 struct mq_attr setAttr = {0}; 371 struct mq_attr attr = {0}; 404 struct mq_attr attr = {0}; 461 struct mq_attr attr = {0}; 492 struct mq_attr attr = {0}; 493 struct mq_attr getAttr = {0};
|
/kernel/liteos_a/compat/posix/src/ |
D | mqueue.c | 168 STATIC VOID MqueueCBInit(struct mqarray *mqueueCB, const struct mq_attr *attr, INT32 openFlag, UINT… in MqueueCBInit() 181 STATIC struct mqpersonal *DoMqueueCreate(const struct mq_attr *attr, const CHAR *mqName, INT32 open… in DoMqueueCreate() 488 STATIC INT32 GetMqueueAttr(struct mq_attr *defaultAttr, struct mq_attr *attr) in GetMqueueAttr() 491 if (LOS_ArchCopyFromUser(defaultAttr, attr, sizeof(struct mq_attr))) { in GetMqueueAttr() 508 struct mq_attr *attr = NULL; in mq_open() 509 struct mq_attr defaultAttr = { 0, MQ_MAX_MSG_NUM, MQ_MAX_MSG_LEN, 0 }; in mq_open() 531 attr = va_arg(ap, struct mq_attr *); in mq_open() 602 int OsMqGetAttr(mqd_t personal, struct mq_attr *mqAttr) in OsMqGetAttr() 633 int OsMqSetAttr(mqd_t personal, const struct mq_attr *mqSetAttr, struct mq_attr *mqOldAttr) in OsMqSetAttr() 666 int mq_getsetattr(mqd_t mqd, const struct mq_attr *new, struct mq_attr *old) in mq_getsetattr()
|
/kernel/liteos_a/testsuites/unittest/libc/posix/mqueue/full/ |
D | It_posix_queue_144.cpp | 37 struct mq_attr attr = { 0 }; in PthreadF01() 62 struct mq_attr attr = { 0 }; in PthreadF02() 91 struct mq_attr mqstat, attr; in Testcase()
|
D | It_posix_queue_015.cpp | 38 struct mq_attr attr = {0}; in Testcase() 39 struct mq_attr attrget; in Testcase()
|
D | It_posix_queue_066.cpp | 37 struct mq_attr mqstat = { 0 }; in Testcase() 38 struct mq_attr nmqstat = { 0 }; in Testcase()
|
D | It_posix_queue_069.cpp | 38 struct mq_attr mqstat1; in Testcase() 39 struct mq_attr mqstat2; in Testcase()
|
D | It_posix_queue_067.cpp | 38 struct mq_attr mqstat1 = { 0 }; in Testcase() 39 struct mq_attr mqstat2 = { 0 }; in Testcase()
|
/kernel/linux/linux-5.10/include/linux/ |
D | audit.h | 32 struct mq_attr; 398 extern void __audit_mq_open(int oflag, umode_t mode, struct mq_attr *attr); 401 extern void __audit_mq_getsetattr(mqd_t mqdes, struct mq_attr *mqstat); 460 static inline void audit_mq_open(int oflag, umode_t mode, struct mq_attr *attr) in audit_mq_open() 475 static inline void audit_mq_getsetattr(mqd_t mqdes, struct mq_attr *mqstat) in audit_mq_getsetattr() 633 static inline void audit_mq_open(int oflag, umode_t mode, struct mq_attr *attr) in audit_mq_open() 642 static inline void audit_mq_getsetattr(mqd_t mqdes, struct mq_attr *mqstat) in audit_mq_getsetattr()
|
/kernel/liteos_m/testsuites/sample/posix/mqueue/ |
D | It_posix_queue_009.c | 37 struct mq_attr attr = {0}; in Testcase() 38 struct mq_attr attrget; in Testcase()
|
D | It_posix_queue_048.c | 36 struct mq_attr mqstat = {0}; in Testcase() 37 struct mq_attr nmqstat = {0}; in Testcase()
|
D | It_posix_queue_050.c | 37 struct mq_attr mqstat1; in Testcase() 38 struct mq_attr mqstat2; in Testcase()
|
D | It_posix_queue_044.c | 37 struct mq_attr mqstat1 = {0}; in Testcase() 38 struct mq_attr mqstat2 = {0}; in Testcase()
|
D | It_posix_queue_049.c | 37 struct mq_attr mqstat1 = {0}; in Testcase() 38 struct mq_attr mqstat2 = {0}; in Testcase()
|
/kernel/liteos_a/testsuites/unittest/libc/posix/mqueue/smoke/ |
D | It_posix_queue_062.cpp | 38 struct mq_attr mqstat1 = { 0 }; in Testcase() 39 struct mq_attr mqstat2 = { 0 }; in Testcase()
|
/kernel/liteos_a/testsuites/unittest/process/plimits/smoke/ |
D | It_process_plimits_ipc_013.cpp | 77 struct mq_attr attr = { 0 }; in ItProcessPlimitsIpc013() 80 struct mq_attr attr_err = { 0 }; in ItProcessPlimitsIpc013()
|
/kernel/liteos_a/testsuites/unittest/container/smoke/ |
D | It_ipc_container_001.cpp | 43 struct mq_attr attr = { 0 }; in childFunc() 91 struct mq_attr attr = { 0 }; in ItIpcContainer001()
|
D | It_ipc_container_002.cpp | 42 struct mq_attr attr = { 0 }; in childFunc() 89 struct mq_attr attr = { 0 }; in ItIpcContainer002()
|