2 ms·
It's not that hard to do in C. Make a macro that takes a function, it runs: set_fs(KERN) *function_pointer() set_fs(USER) There did it before, so they k
by ars 4y ago
It's not that hard to do in C. Make a macro that takes a function, it runs:
set_fs(KERN)
*function_pointer()
set_fs(USER)
There did it before, so they knew about that option, and if they didn't do it, they must have had a reason.
- simias 4y agoIt's true, unfortunately the lack of lambdas in C makes this pattern cumbersome. You could achieve it with a macro instead, I suppose.