Home
last modified time | relevance | path

Searched refs:fdata (Results 1 – 1 of 1) sorted by relevance

/DragonOS-0.1.3/kernel/src/filesystem/procfs/
Dprocfs.c93 void data_puts(struct procfs_file_private_data *fdata, const char *s) in data_puts() argument
96 if(fdata->readlen+len > FDATA_RBUF_SIZE) in data_puts()
101 strncpy(fdata->rbuffer + fdata->readlen, s, len); in data_puts()
102 fdata->readlen += len; in data_puts()
118 struct procfs_file_private_data *fdata = kzalloc(sizeof(struct procfs_file_private_data), 0); in procfs_open() local
122 fdata->rbuffer = kzalloc(FDATA_RBUF_SIZE, 0); in procfs_open()
127 data_puts(fdata, "Name:\t"); in procfs_open()
128 data_puts(fdata, pcb_t->name); in procfs_open()
129 data_puts(fdata, "\nstate:\t"); in procfs_open()
130 data_puts(fdata, ltoa(pcb_t->state)); in procfs_open()
[all …]