#include <sys/cdefs.h>
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/kernel.h>
#include <sys/malloc.h>
#include <sys/limits.h>
#include <sys/lock.h>
#include <sys/mutex.h>
#include <sys/types.h>
#include <sys/user.h>
#include <sys/fcntl.h>
#include <sys/file.h>
#include <sys/filedesc.h>
#include <sys/filio.h>
#include <sys/stat.h>
#include <sys/errno.h>
#include <sys/event.h>
#include <sys/poll.h>
#include <sys/proc.h>
#include <sys/uio.h>
#include <sys/selinfo.h>
#include <sys/eventfd.h>
#include <security/audit/audit.h>
Go to the source code of this file.
|
| __FBSDID ("$FreeBSD$") |
|
| _Static_assert (EFD_CLOEXEC==O_CLOEXEC, "Mismatched EFD_CLOEXEC") |
|
| _Static_assert (EFD_NONBLOCK==O_NONBLOCK, "Mismatched EFD_NONBLOCK") |
|
| MALLOC_DEFINE (M_EVENTFD, "eventfd", "eventfd structures") |
|
static void | filt_eventfddetach (struct knote *kn) |
|
static int | filt_eventfdread (struct knote *kn, long hint) |
|
static int | filt_eventfdwrite (struct knote *kn, long hint) |
|
int | eventfd_create_file (struct thread *td, struct file *fp, uint32_t initval, int flags) |
|
static int | eventfd_close (struct file *fp, struct thread *td) |
|
static int | eventfd_read (struct file *fp, struct uio *uio, struct ucred *active_cred, int flags, struct thread *td) |
|
static int | eventfd_write (struct file *fp, struct uio *uio, struct ucred *active_cred, int flags, struct thread *td) |
|
static int | eventfd_poll (struct file *fp, int events, struct ucred *active_cred, struct thread *td) |
|
static int | eventfd_kqfilter (struct file *fp, struct knote *kn) |
|
static int | eventfd_ioctl (struct file *fp, u_long cmd, void *data, struct ucred *active_cred, struct thread *td) |
|
static int | eventfd_stat (struct file *fp, struct stat *st, struct ucred *active_cred) |
|
static int | eventfd_fill_kinfo (struct file *fp, struct kinfo_file *kif, struct filedesc *fdp) |
|
◆ __FBSDID()
◆ _Static_assert() [1/2]
_Static_assert |
( |
EFD_CLOEXEC |
= =O_CLOEXEC , |
|
|
"Mismatched EFD_CLOEXEC" |
|
|
) |
| |
◆ _Static_assert() [2/2]
_Static_assert |
( |
EFD_NONBLOCK |
= =O_NONBLOCK , |
|
|
"Mismatched EFD_NONBLOCK" |
|
|
) |
| |
◆ eventfd_close()
static int eventfd_close |
( |
struct file * |
fp, |
|
|
struct thread * |
td |
|
) |
| |
|
static |
◆ eventfd_create_file()
int eventfd_create_file |
( |
struct thread * |
td, |
|
|
struct file * |
fp, |
|
|
uint32_t |
initval, |
|
|
int |
flags |
|
) |
| |
◆ eventfd_fill_kinfo()
static int eventfd_fill_kinfo |
( |
struct file * |
fp, |
|
|
struct kinfo_file * |
kif, |
|
|
struct filedesc * |
fdp |
|
) |
| |
|
static |
◆ eventfd_ioctl()
static int eventfd_ioctl |
( |
struct file * |
fp, |
|
|
u_long |
cmd, |
|
|
void * |
data, |
|
|
struct ucred * |
active_cred, |
|
|
struct thread * |
td |
|
) |
| |
|
static |
◆ eventfd_kqfilter()
static int eventfd_kqfilter |
( |
struct file * |
fp, |
|
|
struct knote * |
kn |
|
) |
| |
|
static |
◆ eventfd_poll()
static int eventfd_poll |
( |
struct file * |
fp, |
|
|
int |
events, |
|
|
struct ucred * |
active_cred, |
|
|
struct thread * |
td |
|
) |
| |
|
static |
◆ eventfd_read()
static int eventfd_read |
( |
struct file * |
fp, |
|
|
struct uio * |
uio, |
|
|
struct ucred * |
active_cred, |
|
|
int |
flags, |
|
|
struct thread * |
td |
|
) |
| |
|
static |
◆ eventfd_stat()
static int eventfd_stat |
( |
struct file * |
fp, |
|
|
struct stat * |
st, |
|
|
struct ucred * |
active_cred |
|
) |
| |
|
static |
◆ eventfd_write()
static int eventfd_write |
( |
struct file * |
fp, |
|
|
struct uio * |
uio, |
|
|
struct ucred * |
active_cred, |
|
|
int |
flags, |
|
|
struct thread * |
td |
|
) |
| |
|
static |
◆ filt_eventfddetach()
static void filt_eventfddetach |
( |
struct knote * |
kn | ) |
|
|
static |
◆ filt_eventfdread()
static int filt_eventfdread |
( |
struct knote * |
kn, |
|
|
long |
hint |
|
) |
| |
|
static |
◆ filt_eventfdwrite()
static int filt_eventfdwrite |
( |
struct knote * |
kn, |
|
|
long |
hint |
|
) |
| |
|
static |
◆ MALLOC_DEFINE()
MALLOC_DEFINE |
( |
M_EVENTFD |
, |
|
|
"eventfd" |
, |
|
|
"eventfd structures" |
|
|
) |
| |
◆ eventfd_close
◆ eventfd_fill_kinfo
fo_fill_kinfo_t eventfd_fill_kinfo |
|
static |
◆ eventfd_ioctl
◆ eventfd_kqfilter
fo_kqfilter_t eventfd_kqfilter |
|
static |
◆ eventfd_poll
◆ eventfd_read
◆ eventfd_rfiltops
struct filterops eventfd_rfiltops |
|
static |
Initial value:= {
.f_isfd = 1,
}
static void filt_eventfddetach(struct knote *kn)
static int filt_eventfdread(struct knote *kn, long hint)
Definition at line 89 of file sys_eventfd.c.
Referenced by eventfd_kqfilter().
◆ eventfd_stat
◆ eventfd_wfiltops
struct filterops eventfd_wfiltops |
|
static |
Initial value:= {
.f_isfd = 1,
}
static int filt_eventfdwrite(struct knote *kn, long hint)
Definition at line 95 of file sys_eventfd.c.
Referenced by eventfd_kqfilter().
◆ eventfd_write
◆ eventfdops
struct fileops eventfdops |
|
static |
Initial value:= {
.fo_flags = DFLAG_PASSABLE
}
int invfo_truncate(struct file *fp, off_t length, struct ucred *active_cred, struct thread *td)
int invfo_chown(struct file *fp, uid_t uid, gid_t gid, struct ucred *active_cred, struct thread *td)
int invfo_sendfile(struct file *fp, int sockfd, struct uio *hdr_uio, struct uio *trl_uio, off_t offset, size_t nbytes, off_t *sent, int flags, struct thread *td)
int invfo_chmod(struct file *fp, mode_t mode, struct ucred *active_cred, struct thread *td)
static fo_close_t eventfd_close
static fo_rdwr_t eventfd_read
static fo_fill_kinfo_t eventfd_fill_kinfo
static fo_stat_t eventfd_stat
static fo_poll_t eventfd_poll
static fo_ioctl_t eventfd_ioctl
static fo_kqfilter_t eventfd_kqfilter
static fo_rdwr_t eventfd_write
Definition at line 69 of file sys_eventfd.c.
Referenced by eventfd_create_file().