From owner-freebsd-hackers@freebsd.org Mon Oct 3 17:48:41 2016 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BD06AAF42D8 for ; Mon, 3 Oct 2016 17:48:41 +0000 (UTC) (envelope-from asomers@gmail.com) Received: from mail-wm0-x230.google.com (mail-wm0-x230.google.com [IPv6:2a00:1450:400c:c09::230]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 55E1DAAA for ; Mon, 3 Oct 2016 17:48:41 +0000 (UTC) (envelope-from asomers@gmail.com) Received: by mail-wm0-x230.google.com with SMTP id f193so121371922wmg.0 for ; Mon, 03 Oct 2016 10:48:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:from:date:message-id:subject:to; bh=+/br9pSF4gdKcVlOAyS6kJ+u4wc9q46nx/MpC+q1G0A=; b=UvgRe+qjQXFjWpxzFN6YpeMqvpGW3BvLgn/auAmQvFg/9ZsMwtpt7zKA4P1BBLnTrI AuvuNJRRIIN70RXv+dcnrJ48zjsNvw6OlJxI/ftYtOUN3qHXiy4deDLjdl4EXqdK5lY7 3o9uDFU1QKyMbDz3O8rHbx819y/1U34FnHL16f0wC5zVf1hRXCC5Vv4iBq3hP8UyEBMT i2AXgAV4F13nVLGmPnkhrSDiek8BycyAlsO5SbXWPYYOFuw29PyRqQUProEzeagDwakG llOpwZQPd0N0lreV1Tyy/5Pea0ty+BhBALxKwFIw2hrfCuWLbduH7MTOKZx2M5fWYJpy 929w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:from:date:message-id:subject :to; bh=+/br9pSF4gdKcVlOAyS6kJ+u4wc9q46nx/MpC+q1G0A=; b=N+Qb2HNe6A7S3IWAsQjekhQe8toimzSgu0WyOXP44k+CIq5YaBc3PFFuEmBt6UExL1 1Con0JCE7GjQNc12qVSlWEgqD4E+r5yxkZKS7O0m4O+H2yKcNdj7Mhn1uB0smkiXiuUK TaKIipxsbEV3GpudG8HV8tXAJzYzeKwb063rz4zqtK2Q+bAUNp5xc3YnK/upim+rhLpd legaccCghKgr3mM26IP46/21aNaNl9kbinMC0GPrU2HWahw58C7WHhLa3r33FePjG9md m5AtoOsabnq6vnDp70QL9JBNEdrDoJlQnBhpLqfw/EpXbddFugGCMPeS8MAnc66+Cxma xY5g== X-Gm-Message-State: AA6/9RmZwGETkdXmNj/iwPOT2Pnr7CtPhzEo6gVu+7ooH22ufXxB33wyMkDMOdZ3acF9ahp+doA5iLGw8Il/CA== X-Received: by 10.195.17.226 with SMTP id gh2mr20485656wjd.15.1475516919629; Mon, 03 Oct 2016 10:48:39 -0700 (PDT) MIME-Version: 1.0 Sender: asomers@gmail.com Received: by 10.194.15.137 with HTTP; Mon, 3 Oct 2016 10:48:39 -0700 (PDT) From: Alan Somers Date: Mon, 3 Oct 2016 11:48:39 -0600 X-Google-Sender-Auth: J2FcG8kf7yNa170Z_nEUaZgBOXo Message-ID: Subject: Proper way to add vendor-specific syscalls? To: "freebsd-hackers@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Oct 2016 17:48:41 -0000 What's the proper way to add a vendor-specific syscall? The comments in kern/syscalls.master suggest that they should be put in the range from 151-180, but most of that range is actually occupied. Only five nosys slots are available. If I add syscalls to the end of the list, they'll likely collide with future standard syscalls. Should I just added ~100 nosys syscalls to the end of the list, and put my custom syscalls afterwards? Is there any penalty to lengthening the list? -Alan