Quantcast
Channel: Active questions tagged linux-kernel - Stack Overflow
Viewing all articles
Browse latest Browse all 12319

Conflicting Types Error when Creating a System Call in Ubuntu? No Output when Running System Call

$
0
0

Just a college student trying to make a simple system call on my kernel in Ubuntu. I've been following this tutorial, but I ran into some problems. I think my error is originating from the syscall_64.tbl file that I changed, but I am not sure... I have screenshots of my terminal log and each of the individual files I've created and manipulated here (link to imgur since there are so many pics).

One guy on reddit did say: "I would try asmlinkage long sys_hello(const struct pt_regs *); instead of asmlinkage long sys_hello(void); I don't recommend using type void without some actual reason, which that blog didn't mention."

I tried that change and got this error instead after running sudo make -j2.

If you have any insight - PLEASE help. I've been struggling to get this to work for a few days now... Thanks!


Viewing all articles
Browse latest Browse all 12319

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>