Home
last modified time | relevance | path

Searched refs:nchanges (Results 1 – 25 of 26) sorted by relevance

12

/netbsd-src/lib/libc/compat/sys/
H A Dcompat_kevent.c57 kevent(int kq, const struct kevent100 *changelist, size_t nchanges, in kevent() argument
66 return __kevent50(kq, changelist, nchanges, eventlist, nevents, tsp); in kevent()
70 __kevent50(int kq, const struct kevent100 *changelist100, size_t nchanges, in __kevent50() argument
77 changelist = malloc(sizeof(*changelist) * nchanges); in __kevent50()
88 for (size_t i = 0; i < nchanges; i++) in __kevent50()
91 retval = __kevent100(kq, changelist, nchanges, eventlist, nevents, tsp); in __kevent50()
/netbsd-src/usr.sbin/powerd/
H A Dpowerd.c250 static size_t nchanges; variable
256 if (nchanges == __arraycount(changebuf)) { in allocchange()
258 nchanges = 0; in allocchange()
261 return &changebuf[nchanges++]; in allocchange()
269 while ((rv = prog_kevent(kq, nchanges ? changebuf : NULL, nchanges, in wait_for_events()
271 nchanges = 0; in wait_for_events()
/netbsd-src/external/bsd/libevent/dist/
H A Ddevpoll.c64 int nchanges; member
95 sizeof(struct pollfd) * devpollop->nchanges, 0) == -1) in devpoll_commit()
98 devpollop->nchanges = 0; in devpoll_commit()
106 if (devpollop->nchanges >= devpollop->nevents) { in devpoll_queue()
115 pfd = &devpollop->changes[devpollop->nchanges++]; in devpoll_queue()
178 if (devpollop->nchanges) in devpoll_dispatch()
/netbsd-src/external/bsd/ntp/dist/sntp/libevent/
H A Ddevpoll.c63 int nchanges; member
94 sizeof(struct pollfd) * devpollop->nchanges, 0) == -1) in devpoll_commit()
97 devpollop->nchanges = 0; in devpoll_commit()
105 if (devpollop->nchanges >= devpollop->nevents) { in devpoll_queue()
114 pfd = &devpollop->changes[devpollop->nchanges++]; in devpoll_queue()
177 if (devpollop->nchanges) in devpoll_dispatch()
/netbsd-src/external/gpl3/gcc/dist/libphobos/libdruntime/core/sys/freebsd/sys/
H A Devent.d167 int kevent(int kq, const kevent_t *changelist, int nchanges,
175 int kevent(int kq, const kevent_t *changelist, int nchanges,
180 int kevent(int kq, const kevent_t *changelist, int nchanges,
/netbsd-src/sys/compat/netbsd32/
H A Dnetbsd32_event.c96 const netbsd32_keventp_t changelist, netbsd32_size_t nchanges, in netbsd32_kevent1() argument
106 error = kevent1(retval, fd, NETBSD32PTR64(changelist), nchanges, in netbsd32_kevent1()
132 SCARG(uap, changelist), SCARG(uap, nchanges), in netbsd32___kevent100()
H A Dnetbsd32_compat_100.c128 (netbsd32_keventp_t)SCARG(uap, changelist), SCARG(uap, nchanges), in compat_100_netbsd32___kevent50()
H A Dnetbsd32_compat_50.c615 (netbsd32_keventp_t)SCARG(uap, changelist), SCARG(uap, nchanges), in compat_50_netbsd32_kevent()
H A Dnetbsd32_syscallargs.h1781 syscallarg(netbsd32_size_t) nchanges;
2326 syscallarg(netbsd32_size_t) nchanges;
2801 syscallarg(netbsd32_size_t) nchanges;
H A Dnetbsd32_systrace_args.c2419 iarg[2] = SCARG(p, nchanges); /* netbsd32_size_t */ in systrace_args()
3117 iarg[2] = SCARG(p, nchanges); /* netbsd32_size_t */ in systrace_args()
3720 iarg[2] = SCARG(p, nchanges); /* netbsd32_size_t */ in systrace_args()
/netbsd-src/external/gpl3/gcc/dist/libphobos/libdruntime/core/sys/darwin/sys/
H A Devent.d180 int kevent(int kq, const kevent_t *changelist, int nchanges,
184 const kevent64_s *changelist, int nchanges,
/netbsd-src/lib/libpuffs/
H A Dpuffs.c792 size_t nchanges; in puffs__theloop() local
848 nchanges = 0; in puffs__theloop()
856 EV_SET(&pu->pu_evs[nchanges], fio->io_fd, in puffs__theloop()
860 nchanges++; in puffs__theloop()
863 EV_SET(&pu->pu_evs[nchanges], fio->io_fd, in puffs__theloop()
867 nchanges++; in puffs__theloop()
871 ndone = kevent(pu->pu_kq, pu->pu_evs, nchanges, in puffs__theloop()
/netbsd-src/sys/compat/common/
H A Dkern_event_100.c71 (const struct kevent *)SCARG(uap, changelist), SCARG(uap, nchanges), in compat_100_sys___kevent50()
H A Dkern_select_50.c94 (const struct kevent *)(const void *)SCARG(uap, changelist), SCARG(uap, nchanges), in compat_50_sys_kevent()
/netbsd-src/sys/kern/
H A Dsys_epoll.c264 int nchanges = 0; in epoll_ctl_common() local
305 error = epoll_to_kevent(epfd, fd, event, kev, &nchanges); in epoll_ctl_common()
334 error = kevent1(retval, epfd, kev, nchanges, NULL, 0, NULL, &k_ops); in epoll_ctl_common()
H A Dkern_event.c1801 SCARG(uap, nchanges), SCARG(uap, eventlist), SCARG(uap, nevents), in sys___kevent100()
1807 const struct kevent *changelist, size_t nchanges, in kevent1() argument
1842 while (nchanges > 0) { in kevent1()
1843 n = MIN(nchanges, __arraycount(kevbuf)); in kevent1()
1867 nchanges -= n; /* update the results */ in kevent1()
/netbsd-src/external/gpl3/gcc/dist/libphobos/libdruntime/core/sys/netbsd/sys/
H A Devent.d107 int __kevent50(int kq, const kevent_t *changelist, int nchanges,
/netbsd-src/external/gpl3/gcc/dist/libphobos/libdruntime/core/sys/dragonflybsd/sys/
H A Devent.d123 int kevent(int kq, const kevent_t *changelist, int nchanges,
/netbsd-src/external/gpl3/gcc.old/dist/libsanitizer/include/sanitizer/
H A Dnetbsd_syscall_hooks.h1800 #define __sanitizer_syscall_pre_compat_50_kevent(fd, changelist, nchanges, \ argument
1803 (long long)(fd), (long long)(changelist), (long long)(nchanges), \
1806 res, fd, changelist, nchanges, eventlist, nevents, timeout) \ argument
1808 res, (long long)(fd), (long long)(changelist), (long long)(nchanges), \
2406 #define __sanitizer_syscall_pre___kevent50(fd, changelist, nchanges, \ argument
2409 (long long)(fd), (long long)(changelist), (long long)(nchanges), \
2411 #define __sanitizer_syscall_post___kevent50(res, fd, changelist, nchanges, \ argument
2414 res, (long long)(fd), (long long)(changelist), (long long)(nchanges), \
4189 long long fd, long long changelist, long long nchanges, long long eventlist,
4192 long long res, long long fd, long long changelist, long long nchanges,
[all …]
/netbsd-src/sys/external/bsd/compiler_rt/dist/include/sanitizer/
H A Dnetbsd_syscall_hooks.h1774 #define __sanitizer_syscall_pre_compat_50_kevent(fd, changelist, nchanges, \ argument
1777 (long long)(fd), (long long)(changelist), (long long)(nchanges), \
1780 res, fd, changelist, nchanges, eventlist, nevents, timeout) \ argument
1782 res, (long long)(fd), (long long)(changelist), (long long)(nchanges), \
2378 #define __sanitizer_syscall_pre___kevent50(fd, changelist, nchanges, \ argument
2381 (long long)(fd), (long long)(changelist), (long long)(nchanges), \
2383 #define __sanitizer_syscall_post___kevent50(res, fd, changelist, nchanges, \ argument
2386 res, (long long)(fd), (long long)(changelist), (long long)(nchanges), \
4017 long long fd, long long changelist, long long nchanges, long long eventlist,
4020 long long res, long long fd, long long changelist, long long nchanges,
[all …]
/netbsd-src/external/gpl3/gcc/dist/libsanitizer/include/sanitizer/
H A Dnetbsd_syscall_hooks.h1800 #define __sanitizer_syscall_pre_compat_50_kevent(fd, changelist, nchanges, \ argument
1803 (long long)(fd), (long long)(changelist), (long long)(nchanges), \
1806 res, fd, changelist, nchanges, eventlist, nevents, timeout) \ argument
1808 res, (long long)(fd), (long long)(changelist), (long long)(nchanges), \
2406 #define __sanitizer_syscall_pre___kevent50(fd, changelist, nchanges, \ argument
2409 (long long)(fd), (long long)(changelist), (long long)(nchanges), \
2411 #define __sanitizer_syscall_post___kevent50(res, fd, changelist, nchanges, \ argument
2414 res, (long long)(fd), (long long)(changelist), (long long)(nchanges), \
4189 long long fd, long long changelist, long long nchanges, long long eventlist,
4192 long long res, long long fd, long long changelist, long long nchanges,
[all …]
/netbsd-src/usr.sbin/inetd/
H A Dinetd.c1581 my_kevent(const struct kevent *changelist, size_t nchanges, in my_kevent() argument
1586 while ((result = kevent(kq, changelist, nchanges, eventlist, nevents, in my_kevent()
/netbsd-src/lib/librumphijack/
H A Dhijack.c2399 REALKEVENT(int kq, const struct kevent *changelist, size_t nchanges,
2414 for (i = 0; i < nchanges; i++) {
2426 return op_kevent(kq, changelist, nchanges, eventlist, nevents, timeout);
2381 REALKEVENT(int kq,const struct kevent * changelist,size_t nchanges,struct kevent * eventlist,size_t nevents,const struct timespec * timeout) global() argument
/netbsd-src/sys/rump/librump/rumpkern/
H A Drump_syscalls.c3514 rump___sysimpl_kevent(int fd, const struct kevent * changelist, size_t nchanges, struct kevent * eventlist, size_t nevents, const struct timespec * timeout) in rump___sysimpl_kevent() argument
3524 SPARG(&callarg, nchanges) = nchanges; in rump___sysimpl_kevent()
5331 rump___sysimpl_kevent50(int fd, const struct kevent * changelist, size_t nchanges, struct kevent * eventlist, size_t nevents, const struct timespec * timeout) in rump___sysimpl_kevent50() argument
5341 SPARG(&callarg, nchanges) = nchanges; in rump___sysimpl_kevent50()
6621 rump___sysimpl_kevent100(int fd, const struct kevent * changelist, size_t nchanges, struct kevent * eventlist, size_t nevents, const struct timespec * timeout) in rump___sysimpl_kevent100() argument
6631 SPARG(&callarg, nchanges) = nchanges; in rump___sysimpl_kevent100()
/netbsd-src/sys/sys/
H A Dsyscallargs.h2196 syscallarg(size_t) nchanges;
2842 syscallarg(size_t) nchanges;
3370 syscallarg(size_t) nchanges;

12