Lines Matching refs:file
5 * contributor license agreements. See the NOTICE file distributed with
7 * ASF licenses this file to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance with the
45 static int bch_open(struct file *filep);
46 static int bch_close(struct file *filep);
47 static off_t bch_seek(struct file *filep, off_t offset, int whence);
48 static ssize_t bch_read(struct file *filep, char *buffer,
50 static ssize_t bch_write(struct file *filep, const char *buffer,
52 static int bch_ioctl(struct file *filep, int cmd,
84 static int bch_open(struct file *filep)
115 static int bch_close(struct file *filep)
174 static off_t bch_seek(struct file *filep, off_t offset, int whence)
184 /* Determine the new, requested file position */
209 * "The lseek() function shall allow the file offset to be set beyond the end
210 * of the existing data in the file. If data is later written at this point,
216 * "...the resulting file offset would be negative for a regular file, block
217 * special file, or directory."
238 static ssize_t bch_read(struct file *filep, char *buffer, size_t len)
261 static ssize_t bch_write(struct file *filep, const char *buffer, size_t len)
292 static int bch_ioctl(struct file *filep, int cmd, unsigned long arg)