file.h (95ee2897e98f5d444f26ed2334cc7c439f9c16c6) file.h (ef9ffb8594eee294334ced627755bf5b46b48f9f)
1/*-
2 * Copyright (c) 2010 Isilon Systems, Inc.
3 * Copyright (c) 2010 iX Systems, Inc.
4 * Copyright (c) 2010 Panasas, Inc.
5 * Copyright (c) 2013-2017 Mellanox Technologies, Ltd.
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 29 unchanged lines hidden (view full) ---

38
39#include <linux/fs.h>
40#include <linux/slab.h>
41
42struct linux_file;
43
44#undef file
45
1/*-
2 * Copyright (c) 2010 Isilon Systems, Inc.
3 * Copyright (c) 2010 iX Systems, Inc.
4 * Copyright (c) 2010 Panasas, Inc.
5 * Copyright (c) 2013-2017 Mellanox Technologies, Ltd.
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 29 unchanged lines hidden (view full) ---

38
39#include <linux/fs.h>
40#include <linux/slab.h>
41
42struct linux_file;
43
44#undef file
45
46extern struct fileops linuxfileops;
46extern const struct fileops linuxfileops;
47
48static inline struct linux_file *
49linux_fget(unsigned int fd)
50{
51 struct file *file;
52
53 /* lookup file pointer by file descriptor index */
54 if (fget_unlocked(curthread, fd, &cap_no_rights, &file) != 0)

--- 131 unchanged lines hidden ---
47
48static inline struct linux_file *
49linux_fget(unsigned int fd)
50{
51 struct file *file;
52
53 /* lookup file pointer by file descriptor index */
54 if (fget_unlocked(curthread, fd, &cap_no_rights, &file) != 0)

--- 131 unchanged lines hidden ---