Raunak Mukhia
Raunak Mukhia

Reputation: 388

setjmp.h in kernel space?

Is setjmp and longjmp available in kernel space? I want to jump between functions.

Is it possible to run gclib headers from kernel modules? If yes, then how to use them in kernel modules?

Upvotes: 2

Views: 1169

Answers (1)

stdcall
stdcall

Reputation: 28900

Regarding glibc, the answer is no. When programming in kernel space standard c library is not available, however, the kernel itself implements some of the functionality of libc. You can find relevant headers under linux/include.

Regarding setjmp, I don't remember, but you can use lxr(linux cross reference) to search for it

Upvotes: 2

Related Questions