Date: Sat, 30 Sep 2006 09:49:57 GMT From: Roman Divacky <rdivacky@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 106970 for review Message-ID: <200609300949.k8U9nvcv040147@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=106970 Change 106970 by rdivacky@rdivacky_witten on 2006/09/30 09:49:27 Implement /proc/sys/kernel/pid_max. Affected files ... .. //depot/projects/linuxolator/src/sys/compat/linprocfs/linprocfs.c#2 edit Differences ... ==== //depot/projects/linuxolator/src/sys/compat/linprocfs/linprocfs.c#2 (text+ko) ==== @@ -925,6 +925,17 @@ } /* + * Filler function for proc/pid_max + */ +static int +linprocfs_dopid_max(PFS_FILL_ARGS) +{ + sbuf_printf(sb, "%i\n", PID_MAX); + + return (0); +} + +/* * Filler function for proc/scsi/device_info */ static int @@ -1063,6 +1074,14 @@ NULL, NULL, PFS_RD); pfs_create_file(dir, "scsi", &linprocfs_doscsiscsi, NULL, NULL, PFS_RD); + + /* /proc/sys/... */ + dir = pfs_create_dir(root, "sys", NULL, NULL, 0); + /* /proc/sys/kernel/... */ + dir = pfs_create_dir(dir, "kernel", NULL, NULL, 0); + pfs_create_file(dir, "pid_max", &linprocfs_dopid_max, + NULL, NULL, PFS_RD); + return (0); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200609300949.k8U9nvcv040147>