Date: Sun, 13 May 2007 19:47:21 +0330 From: "Mohsen Pahlevanzadeh" <m.pahlevanzadeh@gmail.com> To: "Viktor Vasilev" <viktor.vasilev@stud.tu-darmstadt.de> Cc: freebsd-hackers@freebsd.org Subject: Re: ioctl Message-ID: <e420c1bd0705130917s2b131fe1od1ceda18264478bb@mail.gmail.com> In-Reply-To: <200705131657.39028.viktor.vasilev@stud.tu-darmstadt.de> References: <e420c1bd0705130659h89f09b4wb47b4e476063e66e@mail.gmail.com> <200705131657.39028.viktor.vasilev@stud.tu-darmstadt.de>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <viktor.vasilev@stud.tu-darmstadt.de> 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" >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?e420c1bd0705130917s2b131fe1od1ceda18264478bb>