Re: bh->b_rdev==0 ??

H. Peter Anvin (hpa@transmeta.com)
20 Aug 1998 05:12:49 GMT


Followup to: <199808192337.TAA18894@blue.seas.upenn.edu>
By author: "Vladimir Dergachev" <vladimid@seas.upenn.edu>
In newsgroup: linux.dev.kernel
>
> Question:
>
> Is it true there are no devices with kdev_t number equal to 0 ?
>
> I am looking over contents of lru_list and there are a lot of
> buffer_head's with both b_rdev and b_rsector equal to 0.
>
> I tried using (bh->b_dev!=B_FREE) to test whether it contains
> some data but it doesn't work (probably bc B_FREE=0xffff).
>
> Or should I use (bh->b_count) instead ?
>

Device (0,0) is a non-device. It is the kdev_t equivalent of the null
pointer.

-hpa

-- 
    PGP: 2047/2A960705 BA 03 D3 2C 14 A8 A8 BD  1E DF FE 69 EE 35 BD 74
    See http://www.zytor.com/~hpa/ for web page and full PGP public key
        I am Bahá'í -- ask me about it or see http://www.bahai.org/
   "To love another person is to see the face of God." -- Les Misérables

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html