Rename kernlet to async

上级 44772003
......@@ -41,6 +41,7 @@ ASFLAGS = -m64 -gdwarf-2 -MD
LDFLAGS = -m elf_x86_64
OBJS = \
async.o \
bio.o \
bootdata.o \
cga.o \
......@@ -59,7 +60,6 @@ OBJS = \
hwvm.o \
hz.o \
kalloc.o \
kernlet.o \
kmalloc.o \
kbd.o \
main.o \
......
......@@ -53,8 +53,8 @@ pread_allocwork(struct inode *ip, size_t count, off_t off,
}
long
sys_kernlet(int fd, size_t count, off_t off,
msgid_t msgid, pageid_t pageid)
sys_async(int fd, size_t count, off_t off,
msgid_t msgid, pageid_t pageid)
{
struct file *f;
struct work *w;
......
......@@ -77,6 +77,6 @@ long (*syscalls[])(u64, u64, u64, u64, u64, u64) = {
SYSCALL(listen),
SYSCALL(accept),
SYSCALL(pread),
SYSCALL(kernlet),
SYSCALL(async),
};
......@@ -46,7 +46,7 @@ long sys_bind(int, void*, int);
long sys_listen(int, int);
long sys_accept(int, void*, void*);
long sys_pread(int fd, void *ubuf, size_t count, off_t offset);
long sys_kernlet(int, size_t, off_t, u32, u32);
long sys_async(int, size_t, off_t, u32, u32);
extern long (*syscalls[])(u64, u64, u64, u64, u64, u64);
// other exported/imported functions
......
......@@ -335,7 +335,7 @@ long sys_bind(int, void*, int);
long sys_listen(int, int);
long sys_accept(int, void*, void*);
long sys_pread(int fd, void *ubuf, size_t count, off_t offset);
long sys_kernlet(int, size_t, off_t, u32, u32);
long sys_async(int, size_t, off_t, u32, u32);
extern long (*syscalls[])(u64, u64, u64, u64, u64, u64);
// other exported/imported functions
......
......@@ -89,7 +89,7 @@ kernlet_pread(int fd, size_t count, off_t off)
msg->done = 0;
msg->pageid = pageid;
if (kernlet(fd, count, off, msgid, pageid) != 0)
if (async(fd, count, off, msgid, pageid) != 0)
die("kernlet");
}
......
......@@ -28,5 +28,5 @@
#define SYS_listen 27
#define SYS_accept 28
#define SYS_pread 29
#define SYS_kernlet 30
#define SYS_async 30
#define SYS_ncount 31 /* total number of system calls */
......@@ -28,7 +28,7 @@ int map(void *addr, int len);
int unmap(void *addr, int len);
void halt(void);
ssize_t pread(int, void*, size_t, off_t);
int kernlet(int, size_t, off_t, u32, u32);
int async(int, size_t, off_t, u32, u32);
// ulib.c
int stat(char*, struct stat*);
......
......@@ -37,4 +37,4 @@ SYSCALL(bind)
SYSCALL(listen)
SYSCALL(accept)
SYSCALL(pread)
SYSCALL(kernlet)
SYSCALL(async)
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论