|
iPXE
|
Linux host API. More...
#include <stdint.h>#include <linux/time.h>#include <linux/mman.h>#include <linux/fcntl.h>#include <linux/ioctl.h>#include <linux/poll.h>#include <linux/fs.h>Go to the source code of this file.
Macros | |
| #define | __KERNEL_STRICT_NAMES |
| #define | MAP_FAILED ( ( void * ) -1 ) |
Functions | |
| FILE_LICENCE (GPL2_OR_LATER) | |
| int __asmcall | linux_open (const char *pathname, int flags,...) |
| int __asmcall | linux_close (int fd) |
| off_t __asmcall | linux_lseek (int fd, off_t offset, int whence) |
| ssize_t __asmcall | linux_read (int fd, void *buf, size_t count) |
| ssize_t __asmcall | linux_write (int fd, const void *buf, size_t count) |
| int __asmcall | linux_fcntl (int fd, int cmd,...) |
| int __asmcall | linux_ioctl (int fd, unsigned long request,...) |
| int __asmcall | linux_fstat_size (int fd, size_t *size) |
| int __asmcall | linux_poll (struct pollfd *fds, unsigned int nfds, int timeout) |
| int __asmcall | linux_nanosleep (const struct timespec *req, struct timespec *rem) |
| int __asmcall | linux_usleep (unsigned int usec) |
| int __asmcall | linux_gettimeofday (struct timeval *tv, struct timezone *tz) |
| void *__asmcall | linux_mmap (void *addr, size_t length, int prot, int flags, int fd, off_t offset) |
| void *__asmcall | linux_mremap (void *old_address, size_t old_size, size_t new_size, int flags,...) |
| int __asmcall | linux_munmap (void *addr, size_t length) |
| int __asmcall | linux_socket (int domain, int type, int protocol) |
| int __asmcall | linux_bind (int sockfd, const struct sockaddr *addr, size_t addrlen) |
| ssize_t __asmcall | linux_sendto (int sockfd, const void *buf, size_t len, int flags, const struct sockaddr *dest_addr, size_t addrlen) |
| const char *__asmcall | linux_strerror (int linux_errno) |
| struct Slirp *__asmcall | linux_slirp_new (const struct slirp_config *config, const struct slirp_callbacks *callbacks, void *opaque) |
| void __asmcall | linux_slirp_cleanup (struct Slirp *slirp) |
| void __asmcall | linux_slirp_input (struct Slirp *slirp, const uint8_t *pkt, int pkt_len) |
| void __asmcall | linux_slirp_pollfds_fill (struct Slirp *slirp, uint32_t *timeout, int(__asmcall *add_poll)(int fd, int events, void *opaque), void *opaque) |
| void __asmcall | linux_slirp_pollfds_poll (struct Slirp *slirp, int select_error, int(__asmcall *get_revents)(int idx, void *opaque), void *opaque) |
Variables | |
| int | linux_errno |
| int | linux_argc |
| char ** | linux_argv |
Linux host API.
This file is included from both the iPXE build environment and the host build environment.
Definition in file linux_api.h.
| #define __KERNEL_STRICT_NAMES |
Definition at line 42 of file linux_api.h.
| #define MAP_FAILED ( ( void * ) -1 ) |
Definition at line 49 of file linux_api.h.
| FILE_LICENCE | ( | GPL2_OR_LATER | ) |
|
extern |
References __asmcall, and flags.
Referenced by tap_open().
|
extern |
References __asmcall.
Referenced by af_packet_nic_close(), af_packet_nic_open(), af_packet_update_properties(), tap_close(), and tap_open().
References __asmcall, and count.
Referenced by af_packet_nic_poll(), and tap_poll().
References __asmcall, and count.
Referenced by tap_transmit().
|
extern |
References __asmcall, and cmd.
Referenced by af_packet_nic_open(), and tap_open().
|
extern |
References __asmcall, and request.
Referenced by af_packet_nic_open(), af_packet_update_properties(), and tap_open().
|
extern |
References __asmcall, and timeout().
Referenced by af_packet_nic_poll(), slirp_poll(), and tap_poll().
|
extern |
References __asmcall.
|
extern |
References __asmcall.
|
extern |
References __asmcall, protocol, and type.
Referenced by af_packet_nic_open(), and af_packet_update_properties().
References __asmcall, and addr.
Referenced by af_packet_nic_open().
|
extern |
References __asmcall, dest_addr, flags, and len.
Referenced by af_packet_nic_transmit().
|
extern |
References __asmcall, and linux_errno.
Referenced by af_packet_nic_open(), af_packet_nic_poll(), af_packet_update_properties(), slirp_poll(), tap_open(), and tap_poll().
|
extern |
Referenced by slirp_probe().
|
extern |
References __asmcall.
Referenced by slirp_probe(), and slirp_remove().
References __asmcall, and pkt_len.
Referenced by slirp_transmit().
|
extern |
References __asmcall, and timeout().
Referenced by slirp_poll().
|
extern |
References __asmcall.
Referenced by slirp_poll().
|
extern |
Referenced by af_packet_nic_open(), af_packet_nic_poll(), af_packet_update_properties(), linux_strerror(), slirp_poll(), tap_open(), and tap_poll().
|
extern |
Definition at line 29 of file linux_args.c.
Referenced by linux_args_parse().
|
extern |
Definition at line 30 of file linux_args.c.
Referenced by linux_args_parse().