xv6-simplified 0.1
简化版xv6
Loading...
Searching...
No Matches
Functions | Variables
printf.c File Reference

打印相关操作 More...

#include <stdarg.h>
#include "include/types.h"
#include "include/riscv.h"
#include "include/defs.h"
Include dependency graph for printf.c:

Functions

void printfinit (void)
 printf初始化,暂剔除调用锁的代码
 
void printf (char *fmt,...)
 打印格式化内容,与c语言printf类似,仅支持d, x, p, s, %%, c;暂剔除调用锁的代码
 
void panic (char *s)
 程序中止并打印s字符串的内容,暂剔除调用锁的代码
 

Variables

volatile int panicked = 0
 

Detailed Description

打印相关操作

Date
23.04.25
Author
xin
Version
0.1 @status Stable

Function Documentation

◆ panic()

void panic ( char *  s)

程序中止并打印s字符串的内容,暂剔除调用锁的代码

Parameters
s要打印的字符串
Here is the call graph for this function:
Here is the caller graph for this function:

◆ printf()

void printf ( char *  fmt,
  ... 
)

打印格式化内容,与c语言printf类似,仅支持d, x, p, s, %%, c;暂剔除调用锁的代码

Parameters
fmt字符指针,要打印的内容
...可变长度参数,格式化替换变量值
Here is the call graph for this function:
Here is the caller graph for this function:

◆ printfinit()

void printfinit ( void  )

printf初始化,暂剔除调用锁的代码

Here is the caller graph for this function:

Variable Documentation

◆ panicked

volatile int panicked = 0