






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!







int find_unmapped_area (map* m, unsigned long len, unsigned long* where) {
static int Imail_write_msg (struct file* f, void* arg) { Imail_header_t header; /* header for new message / Imail_user_data_t udata; /* user data structure / Imail_msg_t msg; /* message to be delivered / int rval; / return value / char wpos; /* write position in message body */
/* Initialize variables an check for user authentication. */ if (NULL == (udata = f->private_data)) return -EPERM; msg = NULL; rval = 0;
/* Check that the file is writable. */ if (0 == (f->f_mode & FMODE_WRITE)) return -EBADF;
/* Read header structure into kernel address space. */ if (copy_from_user (&header, arg, sizeof (header))) return -EFAULT;
transmit (5, 8, 103);