Lines Matching defs:file
27 #include <linux/file.h>
131 struct file *file;
143 file = file_open_root_mnt(mnt, ptr, O_RDONLY, 0);
144 if (IS_ERR(file)) {
145 mconsole_reply(req, "Failed to open file", 1, 0);
146 printk(KERN_ERR "open /proc/%s: %ld\n", ptr, PTR_ERR(file));
157 len = kernel_read(file, buf, PAGE_SIZE - 1, &pos);
159 mconsole_reply(req, "Read of file failed", 1, 0);
162 /* Begin the file content on his own line. */
173 fput(file);
192 proc <file> - returns the contents of the UML's /proc/<file>\n\
722 char file[UNIX_PATH_MAX];
726 if (umid_file_name("mconsole", file, sizeof(file)))
728 snprintf(mconsole_socket_name, sizeof(file), "%s", file);
730 sock = os_create_unix_socket(file, sizeof(file), 1);
768 static ssize_t mconsole_proc_write(struct file *file,