HEX
Server: LiteSpeed
System: Linux w5304130.sdnsbox.com 4.18.0-425.3.1.lve.el8.x86_64 #1 SMP Tue Nov 22 22:59:23 EST 2022 x86_64
User: makefitmeserver (1001)
PHP: 8.2.30
Disabled: NONE
Upload Files
File: //usr/share/systemtap/runtime/linux/autoconf-proc_ops.c
// PR26099: Linux kernel commit d56c0d45f0e for version 5.6 made the following changes:
// - procfs functions now take struct proc_ops instead of struct file_operations
// - proc_dir_entry now has union{proc_ops,proc_dir_ops} instead of proc_fops
//
// XXX: It should be sufficient to test for the existence of struct proc_ops.

#include <linux/fs.h>
#include <linux/proc_fs.h>

int
proc_open_file_test(struct inode *inode, struct file *filp)
{
  return 0;
}

static struct proc_ops proc_ops_test __attribute__ ((unused)) = {
  .proc_open = &proc_open_file_test,
};