From owner-cvs-all@FreeBSD.ORG Fri Oct 29 19:59:25 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2B55F16A4CE; Fri, 29 Oct 2004 19:59:25 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0A50843D1D; Fri, 29 Oct 2004 19:59:25 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.11/8.12.11) with ESMTP id i9TJxOJl091214; Fri, 29 Oct 2004 19:59:24 GMT (envelope-from jhb@repoman.freebsd.org) Received: (from jhb@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i9TJxOo7091213; Fri, 29 Oct 2004 19:59:24 GMT (envelope-from jhb) Message-Id: <200410291959.i9TJxOo7091213@repoman.freebsd.org> From: John Baldwin Date: Fri, 29 Oct 2004 19:59:24 +0000 (UTC) To: doc-committers@FreeBSD.org, cvs-doc@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: doc/en_US.ISO8859-1/books/arch-handbook/driverbasics chapter.sgml X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Oct 2004 19:59:25 -0000 jhb 2004-10-29 19:59:24 UTC FreeBSD doc repository Modified files: en_US.ISO8859-1/books/arch-handbook/driverbasics chapter.sgml Log: Update the sample 'echo' character device driver for 5.x: - Use an dynamic major number rather than a static one. - Use 'struct cdev *' rather than 'dev_t'. - Add d_version field to echo_devsw. - Use malloc()/free() rather than the macros. Submitted by: Karl Andersson karland at home dot se (2,3) Revision Changes Path 1.29 +10 -11 doc/en_US.ISO8859-1/books/arch-handbook/driverbasics/chapter.sgml