From owner-freebsd-hackers@FreeBSD.ORG Sun May 13 16:17:22 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6007416A400 for ; Sun, 13 May 2007 16:17:22 +0000 (UTC) (envelope-from m.pahlevanzadeh@gmail.com) Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.237]) by mx1.freebsd.org (Postfix) with ESMTP id E1BA313C469 for ; Sun, 13 May 2007 16:17:21 +0000 (UTC) (envelope-from m.pahlevanzadeh@gmail.com) Received: by nz-out-0506.google.com with SMTP id s1so1610587nze for ; Sun, 13 May 2007 09:17:21 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:references; b=Ek8GQ0tufbp0WxrBVM2UaxnxVw3wVPY0A9mGeM1zcfXHIOvvAbVn+0lqLUmaVQQvpQSPtbYblKDxbdAWIAbHcSqHRyI4+UtO/IWsX/BqgAOuQYVMyFxUWa558Zlqzg/6mSMUZpyR/RGq+mEUTbDFQQHGmDTgo+ZfpF+KFspjfpw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:references; b=BzTevkoR64pWv4EMHcmCYQQXSaaedJbONPZGpxW1JVWBZAs5KU5NVU75mqyrVJ2UuyMx7F2pORZLZ7sgeArVS1fZDC8QVB79VKNV951i/SY+ZJ6sznrEjdnfGA/juXYQesVeDP8kgZYLsF46R/ZQLgUC67MSsbfUlsqbineGCnw= Received: by 10.65.59.11 with SMTP id m11mr8646309qbk.1179073041209; Sun, 13 May 2007 09:17:21 -0700 (PDT) Received: by 10.65.124.5 with HTTP; Sun, 13 May 2007 09:17:21 -0700 (PDT) Message-ID: Date: Sun, 13 May 2007 19:47:21 +0330 From: "Mohsen Pahlevanzadeh" To: "Viktor Vasilev" In-Reply-To: <200705131657.39028.viktor.vasilev@stud.tu-darmstadt.de> MIME-Version: 1.0 References: <200705131657.39028.viktor.vasilev@stud.tu-darmstadt.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-hackers@freebsd.org Subject: Re: ioctl X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: mohsen@pahlevanzadeh.org List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 May 2007 16:17:22 -0000 Dear all, When i compile it,gcc tell me that IOCATAGPARM isn't declare. May i patch for kernel? Yours,Mohsen On 5/13/07, Viktor Vasilev wrote: > > On Sunday 13 May 2007 15:59 Mohsen Pahlevanzadeh wrote: > > Dear all, > > I need to a code piece that it gets serial number of hdd. > > Please help me.... > > For an ATA disk you can use the IOCATAGPARM ioctl to get the information. > See the attached C source for example. Be sure to have a look > at /usr/src/sys/sys/ata.h for other relevant fields and sizes. > > > Cheers, > Vik > > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" >