Lines Matching refs:real_fops
63 return fsd->real_fops; in debugfs_real_fops()
95 fsd->real_fops = (void *)((unsigned long)d_fsd & in debugfs_file_get()
148 const struct file_operations *real_fops) in debugfs_locked_down() argument
152 !real_fops->unlocked_ioctl && in debugfs_locked_down()
153 !real_fops->compat_ioctl && in debugfs_locked_down()
154 !real_fops->mmap) in debugfs_locked_down()
166 const struct file_operations *real_fops = NULL; in open_proxy_open() local
173 real_fops = debugfs_real_fops(filp); in open_proxy_open()
175 r = debugfs_locked_down(inode, filp, real_fops); in open_proxy_open()
179 if (!fops_get(real_fops)) { in open_proxy_open()
181 if (real_fops->owner && in open_proxy_open()
182 real_fops->owner->state == MODULE_STATE_GOING) { in open_proxy_open()
194 replace_fops(filp, real_fops); in open_proxy_open()
196 if (real_fops->open) in open_proxy_open()
197 r = real_fops->open(inode, filp); in open_proxy_open()
215 const struct file_operations *real_fops; \
221 real_fops = debugfs_real_fops(filp); \
222 r = real_fops->name(args); \
250 const struct file_operations *real_fops; in full_proxy_poll() local
255 real_fops = debugfs_real_fops(filp); in full_proxy_poll()
256 r = real_fops->poll(filp, wait); in full_proxy_poll()
264 const struct file_operations *real_fops = debugfs_real_fops(filp); in full_proxy_release() local
274 if (real_fops->release) in full_proxy_release()
275 r = real_fops->release(inode, filp); in full_proxy_release()
279 fops_put(real_fops); in full_proxy_release()
284 const struct file_operations *real_fops) in __full_proxy_fops_init() argument
287 if (real_fops->llseek) in __full_proxy_fops_init()
289 if (real_fops->read) in __full_proxy_fops_init()
291 if (real_fops->write) in __full_proxy_fops_init()
293 if (real_fops->poll) in __full_proxy_fops_init()
295 if (real_fops->unlocked_ioctl) in __full_proxy_fops_init()
302 const struct file_operations *real_fops = NULL; in full_proxy_open() local
310 real_fops = debugfs_real_fops(filp); in full_proxy_open()
312 r = debugfs_locked_down(inode, filp, real_fops); in full_proxy_open()
316 if (!fops_get(real_fops)) { in full_proxy_open()
318 if (real_fops->owner && in full_proxy_open()
319 real_fops->owner->state == MODULE_STATE_GOING) { in full_proxy_open()
337 __full_proxy_fops_init(proxy_fops, real_fops); in full_proxy_open()
340 if (real_fops->open) { in full_proxy_open()
341 r = real_fops->open(inode, filp); in full_proxy_open()
356 fops_put(real_fops); in full_proxy_open()