Lines Matching defs:whence

93  * @whence: type of seek operation
97 * to @whence.
102 static int must_set_pos(struct file *file, loff_t *offset, int whence, loff_t eof)
104 switch (whence) {
146 * @whence: type of seek
159 generic_file_llseek_size(struct file *file, loff_t offset, int whence,
164 ret = must_set_pos(file, &offset, whence, eof);
170 if (whence == SEEK_CUR) {
188 * @whence: type of seek
196 loff_t generic_llseek_cookie(struct file *file, loff_t offset, int whence,
215 ret = must_set_pos(file, &offset, whence, eof);
222 if (whence == SEEK_CUR)
233 * @whence: type of seek
237 * @offset and @whence.
239 loff_t generic_file_llseek(struct file *file, loff_t offset, int whence)
243 return generic_file_llseek_size(file, offset, whence,
253 * @whence: type of seek
257 loff_t fixed_size_llseek(struct file *file, loff_t offset, int whence, loff_t size)
259 switch (whence) {
261 return generic_file_llseek_size(file, offset, whence,
273 * @whence: type of seek
276 loff_t no_seek_end_llseek(struct file *file, loff_t offset, int whence)
278 switch (whence) {
280 return generic_file_llseek_size(file, offset, whence,
292 * @whence: type of seek
296 loff_t no_seek_end_llseek_size(struct file *file, loff_t offset, int whence, loff_t size)
298 switch (whence) {
300 return generic_file_llseek_size(file, offset, whence,
312 * @whence: type of seek
319 loff_t noop_llseek(struct file *file, loff_t offset, int whence)
325 loff_t default_llseek(struct file *file, loff_t offset, int whence)
331 switch (whence) {
378 loff_t vfs_llseek(struct file *file, loff_t offset, int whence)
382 return file->f_op->llseek(file, offset, whence);
386 static off_t ksys_lseek(unsigned int fd, off_t offset, unsigned int whence)
394 if (whence <= SEEK_MAX) {
395 loff_t res = vfs_llseek(fd_file(f), offset, whence);
404 SYSCALL_DEFINE3(lseek, unsigned int, fd, off_t, offset, unsigned int, whence)
406 return ksys_lseek(fd, offset, whence);
410 COMPAT_SYSCALL_DEFINE3(lseek, unsigned int, fd, compat_off_t, offset, unsigned int, whence)
412 return ksys_lseek(fd, offset, whence);
420 unsigned int, whence)
430 if (whence > SEEK_MAX)
434 whence);