This commit is contained in:
Michael Kerrisk 2006-05-13 04:57:40 +00:00
parent d6edd6b8f6
commit 616c0fd3c6
3 changed files with 20 additions and 14 deletions

View File

@ -26,12 +26,15 @@
.SH NAME
alloc_hugepages, free_hugepages \- allocate or free huge pages
.SH SYNOPSIS
.BI "void *alloc_hugepages(int " key ", void *" addr ", size_t " len ", int " prot ", int " flag );
.nf
.BI "void *alloc_hugepages(int " key ", void *" addr ", size_t " len ,
.BI " int " prot ", int " flag );
.\" asmlinkage unsigned long sys_alloc_hugepages(int key, unsigned long addr,
.\" unsigned long len, int prot, int flag);
.sp
.BI "int free_hugepages(void *" addr );
.\" asmlinkage int sys_free_hugepages(unsigned long addr);
.fi
.SH DESCRIPTION
The system calls
.BR alloc_hugepages ()

View File

@ -23,9 +23,12 @@
.SH NAME
epoll_wait \- wait for an I/O event on an epoll file descriptor
.SH SYNOPSIS
.nf
.B #include <sys/epoll.h>
.sp
.BI "int epoll_wait(int " epfd ", struct epoll_event * " events ", int " maxevents ", int " timeout)
.BI "int epoll_wait(int " epfd ", struct epoll_event * " events ,
.BI " int " maxevents ", int " timeout);
.fi
.SH DESCRIPTION
Wait for events on the
.B epoll
@ -58,17 +61,17 @@ is defined as :
.sp
.nf
typedef union epoll_data {
void *ptr;
int fd;
__uint32_t u32;
__uint64_t u64;
} epoll_data_t;
typedef union epoll_data {
void *ptr;
int fd;
__uint32_t u32;
__uint64_t u64;
} epoll_data_t;
struct epoll_event {
__uint32_t events; /* Epoll events */
epoll_data_t data; /* User data variable */
};
struct epoll_event {
__uint32_t events; /* Epoll events */
epoll_data_t data; /* User data variable */
};
.fi

View File

@ -67,8 +67,8 @@ select, pselect, FD_CLR, FD_ISSET, FD_SET, FD_ZERO \- synchronous I/O multiplexi
.B #include <sys/select.h>
.sp
\fBint pselect(int \fIn\fB, fd_set *\fIreadfds\fB, fd_set *\fIwritefds\fB,
fd_set *\fIexceptfds\fB, const struct timespec *\fItimeout\fB,
const sigset_t *\fIsigmask\fB);
fd_set *\fIexceptfds\fB, const struct timespec *\fItimeout\fB,
const sigset_t *\fIsigmask\fB);
.fi
.SH DESCRIPTION
.BR select ()