Quantcast
Channel: Active questions tagged kernel - Stack Overflow
Viewing all articles
Browse latest Browse all 6334

The use of '__user' in the Linux kernel

$
0
0

For example,int setup_sigcontext(struct sigcontext __user *sc, struct pt_regs *regs),it makes sense to me.But I can't understand something like this,SYSCALL_DEFINE3(sigaltstack, const stack_t __user *, uss,stack_t __user *, uoss, struct pt_regs *, regs).Why there's a ',' between 'const stack_t __user*' and 'uss'.Through the body of this function, I can conclude that 'const stack_t __user' modefy 'uss'.I've learned that '__user' is a macro


Viewing all articles
Browse latest Browse all 6334

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>