MCPcopy Create free account
hub / github.com/F-Stack/f-stack / stack_remaining

Function stack_remaining

freebsd/contrib/openzfs/module/lua/ldo.c:35–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33#if defined (_KERNEL) && defined(__linux__)
34#include <asm/current.h>
35static intptr_t stack_remaining(void) {
36 intptr_t local;
37 local = (intptr_t)&local - (intptr_t)current->stack;
38 return local;
39}
40#elif defined (_KERNEL) && defined(__FreeBSD__)
41#include <sys/pcpu.h>
42static intptr_t stack_remaining(void) {

Callers 1

luaD_callFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected