From owner-freebsd-hackers@FreeBSD.ORG Mon Sep 15 14:32:34 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8E12816A4BF for ; Mon, 15 Sep 2003 14:32:34 -0700 (PDT) Received: from nospam.dyndns.dk (c-180-196-86.ka.dial.de.ignite.net [62.180.196.86]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4365E43F3F for ; Mon, 15 Sep 2003 14:32:08 -0700 (PDT) (envelope-from bounce@NOSPAM.dyndns.dk) Received: from Mail.NOSPAM.DynDNS.dK (ipv6.NetScum.dyndns.dk [2002:3eb4:c456:0:220:afff:fed4:dbcb])h8FLVjQ71247verified NO) for ; Mon, 15 Sep 2003 23:31:46 +0200 (CEST) (envelope-from bounce@NOSPAM.dyndns.dk) Received: (from root@localhost) by Mail.NOSPAM.DynDNS.dK (8.11.6/FNORD) id h8FLVjq71246; Mon, 15 Sep 2003 23:31:45 +0200 (CEST) (envelope-from bounce@NOSPAM.dyndns.dk) Date: Mon, 15 Sep 2003 23:31:45 +0200 (CEST) Message-Id: <200309152131.h8FLVjq71246@Mail.NOSPAM.DynDNS.dK> From: Barry Bouwsma To: FreeBSD Hive of Hackers Subject: Conflict between use of /dev/pps and /dev/ppi? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Sep 2003 21:32:34 -0000 [NOTE: IPv6-only e-mail above, so you probably want to drop me from the recipients and just send to the list, which I'll read later, as I'm not always online -- else remove JUST the hostname part to reveal an IPv4-aware e-mail for me that may still timeout and bounce. Sorry.] Hello hallowed hackers, Be cautioned that this appears valid for RELENG_4 code way back from December of 2002, and I'm pretty sure I haven't banged on either the latest kernel source, or -CURRENT for that matter, as I'm still trying to catch up. I noticed that if I try to write a simple program to open /dev/ppi and do things with it (that work, no less, sometimes), this fails so long as ntpd has /dev/pps open (the parallel port nACK line is used for that). Likewise, when I stop ntpd and run my program, then I'm unable to start ntpd without it complaining about being unable to open /dev/pps. Is there something I should be doing when opening /dev/ppi0 to free it from /dev/pps0 ? I can open /dev/ppi0 simultaneously by several progams though. crw-rw---- 1 root wheel 82, 0 Jan 6 2002 /dev/ppi0 crw------- 1 root wheel 89, 0 Jul 3 14:45 /dev/pps0 The particular code I'm using looks like fd = open("/dev/ppi0", O_RDONLY ); Or is this something within the kernel source that needs munging? Apologies if it no longer (fails to) work this way, but I'm still downloading and reviewing the last nine months of changes to the Internet. Thanks, Barry Bouwsma