From owner-freebsd-hackers Thu Feb 27 22:13:51 2003 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 CB4D837B401; Thu, 27 Feb 2003 22:13:49 -0800 (PST) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id A6A3943F85; Thu, 27 Feb 2003 22:13:48 -0800 (PST) (envelope-from phk@phk.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.6/8.12.6) with ESMTP id h1S6Djaa014954; Fri, 28 Feb 2003 07:13:46 +0100 (CET) (envelope-from phk@phk.freebsd.dk) To: Nate Lawson Cc: marcel@xcllnt.net, mike@FreeBSD.ORG, current@FreeBSD.ORG, hackers@FreeBSD.ORG Subject: Re: 64 bit endian routines From: "Poul-Henning Kamp" In-Reply-To: Your message of "Thu, 27 Feb 2003 20:45:44 PST." <200302280445.h1S4jifs099792@freefall.freebsd.org> Date: Fri, 28 Feb 2003 07:13:45 +0100 Message-ID: <14953.1046412825@critter.freebsd.dk> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message <200302280445.h1S4jifs099792@freefall.freebsd.org>, Nate Lawson writ es: >Both scsi and geom implement unaligned access functions that perform byte >ordering. I never intended to supplant them with __bswap*(). What I want >is for machine/endian.h to have functions that provide 16-64 bit endian >conversions in both aligned and unaligned access forms. After these functions >are there, I'd like us to unify use of them and remove driver-private >versions. I'm all for a unification. I only made my private version in geom because I couldn't get any responses when I raised the issue on arch@. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message