hello folks,
i have written a module which takes userinput via a newly created syscall and progresses it. now, for sake of simplicity the syscall itself just uprintf() the string which was given on the syscall.
lets say i call the new syscall with:
my module shall print "hi there". all in all this is working ratherly perfect. sadly, i didn't come to a good idea how to *check* if:
1. there was an argument for the string
2. if it was a string
now, if i just call my nice syscall without any argument, i get a kernel trap.
what would be proper ways to check for such? :stud
regards,
i have written a module which takes userinput via a newly created syscall and progresses it. now, for sake of simplicity the syscall itself just uprintf() the string which was given on the syscall.
lets say i call the new syscall with:
Code:
syscall(210,"hi there");
my module shall print "hi there". all in all this is working ratherly perfect. sadly, i didn't come to a good idea how to *check* if:
1. there was an argument for the string
2. if it was a string
now, if i just call my nice syscall without any argument, i get a kernel trap.
what would be proper ways to check for such? :stud
regards,