|
Re: linux kernel print to file problem: msg#00039linux.newbie
hello Mukund JB. wrote: Dear Linux-lovers. system call are no longer export with 2.6 kernel... you can find syscall address in your system.map... if you intend to use lot of system call... you have best to find the sys_call_table address... it can looks like : #define SYS_CALL_TABLE "address_in_your_system.map" void **sys_call_table; int (*orig_write) (int, char *, size_t); int init_module(void) { [...] sys_call_table = (void **) SYS_CALL_TABLE; orig_write = sys_call_table[__NR_write]; [...] } may be there is an other problem with your example code... have you try to run it ? system call should be used with parameters coming from userspace... a way to perform that : http://www.ouah.org/LKM_HACKING.html#I.4. regards simon - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.linux-learn.org/faqs |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | linux kernel print to file problem: 00039, Mukund JB. |
|---|---|
| Next by Date: | Test: 00039, Peter |
| Previous by Thread: | linux kernel print to file problemi: 00039, Mukund JB. |
| Next by Thread: | Test: 00039, Peter |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |