Quote:
this statement would be ok if we were talking about java or script languages but c needs to be powerful - i mean this is not a place like a white box where we put kiddies in so they can jump against the walls ....
|
its got nothing to do with C, its to do with the kernel. unix kernels(and NT kernels and probably win95+) dont provide a userspace function with the ability to halt the system, nor do they let you do direct hardware io, it would be absurd to do so.
Quote:
but since i didnt find anything that helps ill be really goin to kernel space and use the lock hammer "cli sti"
|
im not a kernel programming expert but i wouldnt use the machine instructions directly, i would find their wrappers because the 2.5/2.6 series kernel allow user mode to preempt kernel mode, which would be very bad if you had cli'ed and then it jumped into user mode.
if your not writing a hardware driver, then i cant see any valid reason why you need to not be disturbed by the system, maybe your thinking about your problem the wrong way, as i say if you explain what your trying to do then maybe we can help.