From owner-p4-projects@FreeBSD.ORG Sat Sep 30 09:49:58 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 79F9616A417; Sat, 30 Sep 2006 09:49:58 +0000 (UTC) X-Original-To: perforce@FreeBSD.org Delivered-To: perforce@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5461F16A403 for ; Sat, 30 Sep 2006 09:49:58 +0000 (UTC) (envelope-from rdivacky@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0E43843D49 for ; Sat, 30 Sep 2006 09:49:58 +0000 (GMT) (envelope-from rdivacky@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k8U9nvUl040150 for ; Sat, 30 Sep 2006 09:49:57 GMT (envelope-from rdivacky@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k8U9nvcv040147 for perforce@freebsd.org; Sat, 30 Sep 2006 09:49:57 GMT (envelope-from rdivacky@FreeBSD.org) Date: Sat, 30 Sep 2006 09:49:57 GMT Message-Id: <200609300949.k8U9nvcv040147@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to rdivacky@FreeBSD.org using -f From: Roman Divacky To: Perforce Change Reviews Cc: Subject: PERFORCE change 106970 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 Sep 2006 09:49:58 -0000 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); }