Question: Create a system call int sys_wolfie(void *buf, uint size), which copies an ASCII art image to a user-supplied buffer, provided that the buffer is large
Create a system call int sys_wolfie(void *buf, uint size), which copies an ASCII art image to a user-supplied buffer, provided that the buffer is large enough. You are welcome to use an ASCII art generator, or draw your own by hand. If the buffer is too small, or not valid, return a negative value. If the call succeeds, return the number of bytes copied.
You may find it helpful to review how other system calls are implemented and compiled into the kernel, such as read.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
