Lines Matching refs:real_fops
62 return fsd->real_fops; in debugfs_real_fops()
94 fsd->real_fops = (void *)((unsigned long)d_fsd & in debugfs_file_get()
147 const struct file_operations *real_fops) in debugfs_locked_down() argument
151 !real_fops->unlocked_ioctl && in debugfs_locked_down()
152 !real_fops->compat_ioctl && in debugfs_locked_down()
153 !real_fops->mmap) in debugfs_locked_down()
165 const struct file_operations *real_fops = NULL; in open_proxy_open() local
172 real_fops = debugfs_real_fops(filp); in open_proxy_open()
174 r = debugfs_locked_down(inode, filp, real_fops); in open_proxy_open()
178 real_fops = fops_get(real_fops); in open_proxy_open()
179 if (!real_fops) { in open_proxy_open()
186 replace_fops(filp, real_fops); in open_proxy_open()
188 if (real_fops->open) in open_proxy_open()
189 r = real_fops->open(inode, filp); in open_proxy_open()
207 const struct file_operations *real_fops; \
213 real_fops = debugfs_real_fops(filp); \
214 r = real_fops->name(args); \
242 const struct file_operations *real_fops; in full_proxy_poll() local
247 real_fops = debugfs_real_fops(filp); in full_proxy_poll()
248 r = real_fops->poll(filp, wait); in full_proxy_poll()
256 const struct file_operations *real_fops = debugfs_real_fops(filp); in full_proxy_release() local
266 if (real_fops->release) in full_proxy_release()
267 r = real_fops->release(inode, filp); in full_proxy_release()
271 fops_put(real_fops); in full_proxy_release()
276 const struct file_operations *real_fops) in __full_proxy_fops_init() argument
279 if (real_fops->llseek) in __full_proxy_fops_init()
281 if (real_fops->read) in __full_proxy_fops_init()
283 if (real_fops->write) in __full_proxy_fops_init()
285 if (real_fops->poll) in __full_proxy_fops_init()
287 if (real_fops->unlocked_ioctl) in __full_proxy_fops_init()
294 const struct file_operations *real_fops = NULL; in full_proxy_open() local
302 real_fops = debugfs_real_fops(filp); in full_proxy_open()
304 r = debugfs_locked_down(inode, filp, real_fops); in full_proxy_open()
308 real_fops = fops_get(real_fops); in full_proxy_open()
309 if (!real_fops) { in full_proxy_open()
322 __full_proxy_fops_init(proxy_fops, real_fops); in full_proxy_open()
325 if (real_fops->open) { in full_proxy_open()
326 r = real_fops->open(inode, filp); in full_proxy_open()
341 fops_put(real_fops); in full_proxy_open()