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

Function stackgap_status

freebsd/kern/kern_procctl.c:560–570  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

558}
559
560static int
561stackgap_status(struct thread *td, struct proc *p, int *data)
562{
563 PROC_LOCK_ASSERT(p, MA_OWNED);
564
565 *data = (p->p_flag2 & P2_STKGAP_DISABLE) != 0 ? PROC_STACKGAP_DISABLE :
566 PROC_STACKGAP_ENABLE;
567 *data |= (p->p_flag2 & P2_STKGAP_DISABLE_EXEC) != 0 ?
568 PROC_STACKGAP_DISABLE_EXEC : PROC_STACKGAP_ENABLE_EXEC;
569 return (0);
570}
571
572#ifndef _SYS_SYSPROTO_H_
573struct procctl_args {

Callers 1

kern_procctl_singleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected