Discussion:
[Help-bash] What does kqueue means?
Jorge
2018-01-25 22:42:25 UTC
Permalink
I'm trying to understand what the word kqueue means to understand the
The maximum number of kqueues that may be allocate
Someone told me that it's a BSD thing via #bash IRC, but I have no idea
how to find more info about that. man sigqueue nor man setrlimit didn't
help me find it out.
Chet Ramey
2018-01-26 13:29:13 UTC
Permalink
Post by Jorge
I'm trying to understand what the word kqueue means to understand the
The maximum number of kqueues that may be allocate
`kqueue' is a BSD kernel event notification mechanism. You allocate a
kqueue with the kqueue(2) system call, it returns a file descriptor,
and you receive notifications of events in which you indicate interest
via that descriptor. The events are placed on a queue associated with the
descriptor and you can retrieve them one at a time, hence the `kqueue'
name.

The resource limit controls the number of queues you can create.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU ***@case.edu http://tiswww.cwru.edu/~chet/
Greg Wooledge
2018-01-26 15:28:28 UTC
Permalink
I'm trying to understand what the word kqueue means to understand the option
The maximum number of kqueues that may be allocate
Someone told me that it's a BSD thing via #bash IRC, but I have no idea how
to find more info about that. man sigqueue nor man setrlimit didn't help me
find it out.
BSD systems typically have their man pages online.

<https://man.openbsd.org/setrlimit> has nothing about it, so I'm assuming
OpenBSD does not have kqueues.

<https://www.freebsd.org/cgi/man.cgi?query=setrlimit&apropos=0&sektion=0&manpath=FreeBSD+11.1-RELEASE+and+Ports&arch=default&format=html>
(the resulting of searching for setrlimit at <https://www.freebsd.org/cgi/man.cgi>)
DOES have it, so obviously FreeBSD has them. Sadly, there is no
link to a kqueue page from the SEE ALSO section.

However, if we search again for kqueue, we get to
<https://www.freebsd.org/cgi/man.cgi?query=kqueue&apropos=0&sektion=0&manpath=FreeBSD+11.1-RELEASE+and+Ports&arch=default&format=html>
which should have all the information you want.

I'd bet you could have got here simply by searching Google for something
like "bsd kqueue man page", though that wasn't the path I chose.

Loading...