mirror of
https://passt.top/passt
synced 2025-08-06 15:58:00 +02:00
util: Rename and make global vu_remove_watch()
vu_remove_watch() is used in vhost_user.c to remove an fd from the global epoll set. There's nothing really vhost user specific about it though, so rename, move to util.c and use it in a bunch of places outside vhost_user.c where it makes things marginally more readable. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
parent
10c4a9e1b3
commit
0349cf637f
9 changed files with 25 additions and 27 deletions
1
util.h
1
util.h
|
@ -276,6 +276,7 @@ static inline bool mod_between(unsigned x, unsigned i, unsigned j, unsigned m)
|
|||
#define FPRINTF(f, ...) (void)fprintf(f, __VA_ARGS__)
|
||||
|
||||
void raw_random(void *buf, size_t buflen);
|
||||
void epoll_del(const struct ctx *c, int fd);
|
||||
|
||||
/*
|
||||
* Starting from glibc 2.40.9000 and commit 25a5eb4010df ("string: strerror,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue