| Age | Commit message (Collapse) | Author |
|
For draining the socket receive buffer.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
This is done by both systemd sd-device and AOSP ueventd to improve robustness. Rosa OS will still handle ENOBUFS via coldboot but a big buffer should mitigate this as well.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
These are more flexible than recvfrom/sendto.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
This enables abstractions around some families to be implemented in a separate package.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
Not every received message is a reply.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
This also gets rid of the cached pid value for port since that prevents multiple sockets from being open at once.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
This also uses an array type for the buffer since its size now uses the hardcoded value found in the kernel.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
This removes netpoll boilerplate for the most common use case.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
This enables use with blocking calls like when used with NETLINK_KOBJECT_UEVENT.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
The previous API makes it impossible to retrieve remaining messages in the current iteration.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
This enables use with epoll for receiving events only.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
This is useful for uevent implementation.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|