Date: Mon, 04 Aug 2003 07:43:44 +0200 From: "Poul-Henning Kamp" <phk@phk.freebsd.dk> To: Eno Thereska <eno@andrew.cmu.edu> Cc: freebsd hackers <freebsd-hackers@freebsd.org> Subject: Re: getting from bio to buf in dastrategy() Message-ID: <10994.1059975824@critter.freebsd.dk> In-Reply-To: Your message of "Sun, 03 Aug 2003 19:11:39 EDT." <3F2D96AB.9000607@andrew.cmu.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
In message <3F2D96AB.9000607@andrew.cmu.edu>, Eno Thereska writes: >Hi all, > >I am hacking into the FreeBSD 5.0 code. >I jumped from using 4.4 to 5.0 and a couple of things >have changed. Here is my question: > >in /sys/cam/scsi/scsi_da.c the dastrategy() >function takes as an argument "struct bio* bp" >Now I need to get to the "struct *buf" that bp >belongs to. You can't do that, there may not be any struct buf. -- 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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?10994.1059975824>