blob: fae9a27ebedb5f83d6a9b2c12b0450688dffc562 [file] [log] [blame]
Elliott Hughes180edef2023-11-02 00:08:05 +00001/*
2 * This file is auto-generated. Modifications will be lost.
3 *
4 * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/
5 * for more information.
6 */
Ben Cheng655a7c02013-10-16 16:09:24 -07007#ifndef _LINUX_MQUEUE_H
8#define _LINUX_MQUEUE_H
Christopher Ferris525ce912017-07-26 13:12:53 -07009#include <linux/types.h>
Ben Cheng655a7c02013-10-16 16:09:24 -070010#define MQ_PRIO_MAX 32768
11#define MQ_BYTES_MAX 819200
Ben Cheng655a7c02013-10-16 16:09:24 -070012struct mq_attr {
Tao Baod7db5942015-01-28 10:07:51 -080013 __kernel_long_t mq_flags;
14 __kernel_long_t mq_maxmsg;
15 __kernel_long_t mq_msgsize;
Tao Baod7db5942015-01-28 10:07:51 -080016 __kernel_long_t mq_curmsgs;
17 __kernel_long_t __reserved[4];
Ben Cheng655a7c02013-10-16 16:09:24 -070018};
19#define NOTIFY_NONE 0
Ben Cheng655a7c02013-10-16 16:09:24 -070020#define NOTIFY_WOKENUP 1
21#define NOTIFY_REMOVED 2
22#define NOTIFY_COOKIE_LEN 32
Nick Kralevicha67e4de2013-01-14 11:28:26 -080023#endif