int proc_read_hello(char *page, char **start, off_t off, int count, int *eof,void *data) {
int len;
len = sprintf(page, global_buffer); //把global_buffer的内容显示给访问者
return len;
}
int proc_write_hello(struct file *file, const char *buffer, unsigned long count,void *data) {
unsigned long len;
int ret;
if(count == STRINGLEN){
len = STRINGLEN - 1;
}
else{
len = count;
}