Thread #108270573
File: Tumblr_l_215661021174968.png (1.2 MB)
1.2 MB PNG
previous: >>108262843#define __NR_msgget 68
#define __NR_msgsnd 69
#define __NR_msgrcv 70
#define __NR_msgctl 71
https://man7.org/linux/man-pages/man2/msgget.2.html
https://man7.org/linux/man-pages/man2/msgop.2.html
https://man7.org/linux/man-pages/man2/msgctl.2.html
tl;dr:
message queues, but worse!
https://man7.org/linux/man-pages/man7/mq_overview.7.html
to be clear, these syscalls are NOT posix message queues. but the above link mentions them in the notes, and it should explain a bit more
one of about infinity different implementations of IPC. from the before times...
what IPC do you use? do you have a favorite subset of IPC? personally, i'm quite fond of RPC.
relevant resources:man manman syscalls
https://man7.org/linux/man-pages/
https://linux.die.net/man/
https://elixir.bootlin.com/linux/
https://elixir.bootlin.com/musl/
https://elixir.bootlin.com/glibc/
16 RepliesView Thread
>>
I love message queues, the only drawback is that eventually in the development lifecycle you notice that you actually sometimes need two way communication and then you are kind of fucked and have to bolt on something else anyways
>>
>>
>>108270573
>one of about infinity different implementations of IPC. from the before times...
This is because of Unix brain damage. They can't just put things in a library. It has to be in the kernel for all time and you can't ever remove it. And they can't just extend features. They have to make a completely different feature that does the same thing and keep both around forever.
>>
>>108270573
>what IPC do you use?
AF_UNIX SOCK_SEQPACKET/SOCK_DGRAM, with socketpair() whenever possible.
>>108270928
This guy knows.
>>
>>
>>108272022
what's your big problem with them?
>>108270987
certain primitives simply cannot be implemented in user space. and even if some of them could be abstracted out of kernel parts, doing it all in-kernel is much more performant
>>
File: 1762998239037806.png (102.8 KB)
102.8 KB PNG
>>108270928
>not berformant enough
>>
>>
>>
File: 1750586840094083.png (99.2 KB)
99.2 KB PNG
>>108272796
>processes trample all over each other
>both ultimately sigsegv
>>
>>
File: image0-11.jpg (104.4 KB)
104.4 KB JPG
>>108273752
be nice to me ;___; i'm sensitive
>>
>>