Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/stack.h
Show All 25 Lines | |||||
* SUCH DAMAGE. | * SUCH DAMAGE. | ||||
* | * | ||||
* $FreeBSD$ | * $FreeBSD$ | ||||
*/ | */ | ||||
#ifndef _SYS_STACK_H_ | #ifndef _SYS_STACK_H_ | ||||
#define _SYS_STACK_H_ | #define _SYS_STACK_H_ | ||||
#ifdef _KERNEL | |||||
imp: This file could be done separately since it's a bit orthogonal to this change (the extern isn't… | |||||
kaktusAuthorUnsubmitted Done Inline ActionsI found that few other headers are missing that \#ifdef, i'll do it in separate patch. kaktus: I found that few other headers are missing that \#ifdef, i'll do it in separate patch. | |||||
#include <sys/_stack.h> | #include <sys/_stack.h> | ||||
#ifdef _SYS_MALLOC_H_ | #ifdef _SYS_MALLOC_H_ | ||||
MALLOC_DECLARE(M_STACK); | MALLOC_DECLARE(M_STACK); | ||||
#endif | #endif | ||||
struct sbuf; | struct sbuf; | ||||
extern int tty_info_kstacks; | |||||
/* MI Routines. */ | /* MI Routines. */ | ||||
struct stack *stack_create(int); | struct stack *stack_create(int); | ||||
void stack_destroy(struct stack *); | void stack_destroy(struct stack *); | ||||
int stack_put(struct stack *, vm_offset_t); | int stack_put(struct stack *, vm_offset_t); | ||||
void stack_copy(const struct stack *, struct stack *); | void stack_copy(const struct stack *, struct stack *); | ||||
void stack_zero(struct stack *); | void stack_zero(struct stack *); | ||||
void stack_print(const struct stack *); | void stack_print(const struct stack *); | ||||
void stack_print_ddb(const struct stack *); | void stack_print_ddb(const struct stack *); | ||||
Show All 13 Lines | |||||
#else | #else | ||||
#define CTRSTACK(m, st, depth) | #define CTRSTACK(m, st, depth) | ||||
#endif | #endif | ||||
/* MD Routines. */ | /* MD Routines. */ | ||||
struct thread; | struct thread; | ||||
void stack_save(struct stack *); | void stack_save(struct stack *); | ||||
int stack_save_td(struct stack *, struct thread *); | int stack_save_td(struct stack *, struct thread *); | ||||
#endif /* _KERNEL */ | |||||
#endif | #endif |
This file could be done separately since it's a bit orthogonal to this change (the extern isn't, but the _KERNEL part is).