Try/catch for modules?

Ruben Safir ruben at mrbrklyn.com
Fri Oct 18 14:52:29 EDT 2019


On 10/18/19 1:05 PM, Martin Galvan wrote:
> El vie., 18 oct. 2019 a las 14:02, Ruben Safir (<ruben at mrbrklyn.com>) escribió:
>> I don't think you really understand what is going on here.  On the
>> kernel level you would never wrap up a process in another process in
>> order to catch a mistake, and then do error correction.  That method of
>> programming is not appropriate for kernel level code where you are
>> running everything on the hardware.
>>
>> You can test for a condition before you run the code, and use GOTO if
>> you want, but you are not doing a Java like Catch and Throw.
> 
> I'm not talking about running managed code in the kernel. I'm talking
> about whether there is a more general version of something like
> _ASM_EXTABLE, or maybe even doing something like what Windows does
> with its __try/__except machinery which uses stack unwinding
> information.
> 
> From the responses here it's clear that there's no such thing in the
> kernel, at least that you guys know about. Thanks.
> 
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
> 
https://code.woboq.org/linux/linux/arch/x86/include/asm/uaccess.h.html


it is for user space coding...



-- 
So many immigrant groups have swept through our town
that Brooklyn, like Atlantis, reaches mythological
proportions in the mind of the world - RI Safir 1998
http://www.mrbrklyn.com
DRM is THEFT - We are the STAKEHOLDERS - RI Safir 2002

http://www.nylxs.com - Leadership Development in Free Software
http://www.brooklyn-living.com

Being so tracked is for FARM ANIMALS and extermination camps,
but incompatible with living as a free human being. -RI Safir 2013



More information about the Kernelnewbies mailing list