Hi, Why is it that when I compare the sprintf parameters in fs/proc/array.c to the actual output of /proc/pid/stat I come up short by one field? FLDNUM FMT ARG OUTPUT 1 %d task->pid 18173 2 (%s) task->comm (run-mozilla.sh) 3 %c state S 4 %d ppid 932 5 %d task->pgrp 18173 6 %d task->session 904 7 %d tty_nr 0 8 %d tty_pgrp -1 9 %lu task->flags 0 10 %lu task->min_flt 186 11 %lu task->cmin_flt 118 12 %lu task->maj_flt 483 13 %lu task->cmaj_flt 470 14 %lu task->times.tms_utime 0 15 %lu task->times.tms_stime 0 16 %ld task->times.tms_cutime 0 17 %ld task->times.tms_cstime 0 18 %ld priority 16 19 %ld nice 0 20 %ld 0UL /* removed */ 0 21 %ld task->it_real_value 0 22 %lu task->start_time 4755372 23 %lu vsize 2338816 24 %ld mm ? mm->rss : 0 /* you might want to shift this left 3 */ 220 25 %lu task->rlim[RLIMIT_RSS].rlim_cur 4294967295 26 %lu mm ? mm->start_code : 0 134512640 27 %lu mm ? mm->end_code : 0 135029780 28 %lu mm ? mm->start_stack : 0 3221224048 29 %lu esp 3221222148 30 %lu eip 1108035433 31 %lu task->pending.signal.sig[0] & 0x7fffffffUL 0 32 %lu task->blocked.sig[0] & 0x7fffffffUL 65536 33 %lu sigign.sig[0] & 0x7fffffffUL 4 34 %lu sigcatch.sig[0] & 0x7fffffffUL 65538 35 %lu wchan 3222384609 36 %lu task->nswap 0 37 %lu task->cnswap 0 38 %d task->exit_signal 17 39 %d task->cpu I'm looking at the RH kernel-source-2.4.18-3 and I am running that kernel. Does anyone else only get 38 fields or is it just me? Mike -- A program should be written to model the concepts of the task it performs rather than the physical world or a process because this maximizes the potential for it to be applied to tasks that are conceptually similar and, more important, to tasks that have not yet been conceived. -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/