Re: getting from bio to buf in dastrategy()

2003-08-14 Thread Eno Thereska
Hi, >To: Eno Thereska <[EMAIL PROTECTED]> >Date: Mon, 04 Aug 2003 07:43:44 +0200 >In message <[EMAIL PROTECTED]>, 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/ca

Re: getting from bio to buf in dastrategy()

2003-08-14 Thread Poul-Henning Kamp
In message <[EMAIL PROTECTED]>, Eno Thereska writes: > >>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. > >How can a bio exis

Re: getting from bio to buf in dastrategy()

2003-08-03 Thread Poul-Henning Kamp
In message <[EMAIL PROTECTED]>, 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 n

getting from bio to buf in dastrategy()

2003-08-03 Thread Eno Thereska
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. In /sys/sys