qsize - find the number of messages on a queue
#include <sys/stream.h> int qsize(queue_t *q);
Architecture independent level 1 (DDI/DKI).
q
The qsize() function evaluates the queue q and returns the number of messages it contains.
If there are no message on the queue, qsize() returns 0. Otherwise, it returns the integer representing the number of messages on the queue.
The qsize() function can be called from user, interrupt, or kernel context.
Writing Device Drivers
STREAMS Programming Guide
Закладки на сайте Проследить за страницей |
Created 1996-2024 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |