From owner-freebsd-hackers@FreeBSD.ORG Wed Sep 28 08:10:47 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org 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 5A9F516A41F for ; Wed, 28 Sep 2005 08:10:47 +0000 (GMT) (envelope-from nsrashmi@gmail.com) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.195]) by mx1.FreeBSD.org (Postfix) with ESMTP id DB60F43D48 for ; Wed, 28 Sep 2005 08:10:46 +0000 (GMT) (envelope-from nsrashmi@gmail.com) Received: by xproxy.gmail.com with SMTP id t14so1356793wxc for ; Wed, 28 Sep 2005 01:10:46 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type; b=X3s7rX3o5ED8O1+o++TUzoVhC8kCbRWrUkZl1TMFfSatoyk/GTzCG/WfnGgWGQiY+Ruvq34c8b6MxfJf9YbbP186Lk1DyM9UWfxyBc5fUuV4q2qlxwoQ5dAynMJQydtviG1mvcBfH7puaxMMgtX2dmJEujbW5fZedh//UNXY6gs= Received: by 10.70.11.20 with SMTP id 20mr1450615wxk; Wed, 28 Sep 2005 01:10:46 -0700 (PDT) Received: by 10.70.15.12 with HTTP; Wed, 28 Sep 2005 01:10:46 -0700 (PDT) Message-ID: <9f999316050928011010542946@mail.gmail.com> Date: Wed, 28 Sep 2005 13:40:46 +0530 From: rashmi ns To: bugi@lists.redbrick.dcu.ie, freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: IOCTL :Facing problems while acccessing data from kernel space X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: rashmi ns List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2005 08:10:48 -0000 > Hello All , Sorry for resending the message many times !!!. I was trying to add a new ioctl command like > #define HDLCMODE _IOR('6',0xF,int) > when i trying to uprintf the data which was sent from the user-space in > the device-driver-ioctl-routine i'll get a different value than which was > passed. Can anybody please tell me why this is happening . I pass the > address of an integer where data is stored from the user space as third a= rg > to the ioctl call . > Thanks and regards, > Rashmi.N.S > >