Lines Matching refs:fdata

93 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()
131 data_puts(fdata, "\npid:\t"); in procfs_open()
132 data_puts(fdata, ltoa(pcb_t->pid)); in procfs_open()
133 data_puts(fdata, "\nPpid:\t"); in procfs_open()
134 data_puts(fdata, ltoa(pcb_t->parent_pcb->pid)); in procfs_open()
135 data_puts(fdata, "\ncpu_id:\t"); in procfs_open()
136 data_puts(fdata, ltoa(pcb_t->cpu_id)); in procfs_open()
137 data_puts(fdata, "\npriority:\t"); in procfs_open()
138 data_puts(fdata, ltoa(pcb_t->priority)); in procfs_open()
139 data_puts(fdata, "\npreempt:\t"); in procfs_open()
140 data_puts(fdata, ltoa(pcb_t->preempt_count)); in procfs_open()
141 data_puts(fdata, "\nvrtime:\t"); in procfs_open()
142 data_puts(fdata, ltoa(pcb_t->virtual_runtime)); in procfs_open()
151 data_puts(fdata, "\nVmPeak:"); in procfs_open()
152 data_puts(fdata, ltoa(hiwater_vm)); in procfs_open()
153 data_puts(fdata, " kB"); in procfs_open()
154 data_puts(fdata, "\nVmData:"); in procfs_open()
155 data_puts(fdata, ltoa(data)); in procfs_open()
156 data_puts(fdata, " kB"); in procfs_open()
157 data_puts(fdata, "\nVmExe:"); in procfs_open()
158 data_puts(fdata, ltoa(text)); in procfs_open()
159 data_puts(fdata, " kB\n"); in procfs_open()
167 inode->file_size = fdata->readlen; in procfs_open()
168 file_ptr->private_data = fdata; in procfs_open()