kboot: Implement host_ioctl
Sponsored by: Netflix
This commit is contained in:
parent
f56d7a73be
commit
54e6e0deb4
@ -5,6 +5,7 @@
|
|||||||
#define SYS_getdents64 61
|
#define SYS_getdents64 61
|
||||||
#define SYS_getpid 172
|
#define SYS_getpid 172
|
||||||
#define SYS_gettimeofday 169
|
#define SYS_gettimeofday 169
|
||||||
|
#define SYS_ioctl 29
|
||||||
#define SYS_lseek 62
|
#define SYS_lseek 62
|
||||||
#define SYS_kexec_load 104
|
#define SYS_kexec_load 104
|
||||||
#define SYS_mkdirat 34
|
#define SYS_mkdirat 34
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
#define SYS_getdents64 217
|
#define SYS_getdents64 217
|
||||||
#define SYS_getpid 39
|
#define SYS_getpid 39
|
||||||
#define SYS_gettimeofday 96
|
#define SYS_gettimeofday 96
|
||||||
|
#define SYS_ioctl 16
|
||||||
#define SYS_kexec_load 246
|
#define SYS_kexec_load 246
|
||||||
#define SYS_lseek 8
|
#define SYS_lseek 8
|
||||||
#define SYS_mkdirat 258
|
#define SYS_mkdirat 258
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
#define SYS_getdents64 202
|
#define SYS_getdents64 202
|
||||||
#define SYS_getpid 20
|
#define SYS_getpid 20
|
||||||
#define SYS_gettimeofday 78
|
#define SYS_gettimeofday 78
|
||||||
|
#define SYS_ioctl 54
|
||||||
#define SYS_kexec_load 268
|
#define SYS_kexec_load 268
|
||||||
#define SYS_llseek 140
|
#define SYS_llseek 140
|
||||||
#define SYS_mkdirat 287
|
#define SYS_mkdirat 287
|
||||||
|
@ -160,6 +160,7 @@ int host_fstat(int fd, struct host_kstat *sb);
|
|||||||
int host_getdents64(int fd, void *dirp, int count);
|
int host_getdents64(int fd, void *dirp, int count);
|
||||||
int host_getpid(void);
|
int host_getpid(void);
|
||||||
int host_gettimeofday(struct host_timeval *a, void *b);
|
int host_gettimeofday(struct host_timeval *a, void *b);
|
||||||
|
int host_ioctl(int fd, unsigned long request, unsigned long arg);
|
||||||
int host_kexec_load(unsigned long entry, unsigned long nsegs, struct host_kexec_segment *segs, unsigned long flags);
|
int host_kexec_load(unsigned long entry, unsigned long nsegs, struct host_kexec_segment *segs, unsigned long flags);
|
||||||
ssize_t host_llseek(int fd, int32_t offset_high, int32_t offset_lo, uint64_t *result, int whence);
|
ssize_t host_llseek(int fd, int32_t offset_high, int32_t offset_lo, uint64_t *result, int whence);
|
||||||
int host_mkdir(const char *, host_mode_t);
|
int host_mkdir(const char *, host_mode_t);
|
||||||
|
@ -54,6 +54,12 @@ host_gettimeofday(struct host_timeval *a, void *b)
|
|||||||
return host_syscall(SYS_gettimeofday, (uintptr_t)a, (uintptr_t)b);
|
return host_syscall(SYS_gettimeofday, (uintptr_t)a, (uintptr_t)b);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int
|
||||||
|
host_ioctl(int fd, unsigned long request, unsigned long arg)
|
||||||
|
{
|
||||||
|
return host_syscall(SYS_ioctl, fd, request, arg);
|
||||||
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
host_kexec_load(unsigned long entry, unsigned long nsegs, struct host_kexec_segment *segs, unsigned long flags)
|
host_kexec_load(unsigned long entry, unsigned long nsegs, struct host_kexec_segment *segs, unsigned long flags)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user