How does the use of devfs relate to the question below? AFAIK one of the 
key points of devfs is to stop using major and minor numbers when binding 
drivers to devices. So if I'm using devfs, I'm assuming, I don't have to 
worry about the number of my dvb cards?

Br, Lauri

On Tue, Feb 12, 2002 at 03:42:07PM -0800, Aurelian Pop wrote:
> 
> Hello List,
> 
> 
> When I use the default sources from CVS, in the "DVB/drivers/makedev.napi" file, 
>there are being made 3 sets of device files (0-2).
> Basically if you want to use a DVB card, you open the device files you need and play 
>with them using the NAPI. The only trouble comes when you use more than 3 cards on 
>the same machine.
> Although the DVB_NUM_DEVICES is set to 16, in that particular file, there are only 3 
>sets of device files created.
> The original "DVB/drivers/makedev.napi" file looks like this:
> 
> 
> 
> BEGIN
> ************************************************
> rm -rf /dev/ost
> rm -rf /dev/ost
> 
> mkdir /dev/ost
> chmod 755 /dev/ost
> mknod -m 0666 /dev/ost/video0    c 250   0
> mknod -m 0666 /dev/ost/audio0    c 250   1
> mknod -m 0666 /dev/ost/sec0      c 250   2
> mknod -m 0666 /dev/ost/frontend0 c 250   3
> mknod -m 0666 /dev/ost/demux0    c 250   4
> mknod -m 0666 /dev/ost/dvr0      c 250   5
> mknod -m 0666 /dev/ost/ca0       c 250   6
> mknod -m 0666 /dev/ost/net0      c 250   7
> mknod -m 0666 /dev/ost/osd0      c 250   8
> 
> mknod -m 0666 /dev/ost/video1    c 250  64
> mknod -m 0666 /dev/ost/audio1    c 250  65
> mknod -m 0666 /dev/ost/sec1      c 250  66
> mknod -m 0666 /dev/ost/frontend1 c 250  67
> mknod -m 0666 /dev/ost/demux1    c 250  68
> mknod -m 0666 /dev/ost/dvr1      c 250  69
> mknod -m 0666 /dev/ost/ca1       c 250  70
> mknod -m 0666 /dev/ost/net1      c 250  71
> mknod -m 0666 /dev/ost/osd1      c 250  72
> 
> mknod -m 0666 /dev/ost/video2    c 250 128
> mknod -m 0666 /dev/ost/audio2    c 250 129
> mknod -m 0666 /dev/ost/sec2      c 250 130
> mknod -m 0666 /dev/ost/frontend2 c 250 131
> mknod -m 0666 /dev/ost/demux2    c 250 132
> mknod -m 0666 /dev/ost/dvr2      c 250 133
> mknod -m 0666 /dev/ost/ca2       c 250 134
> mknod -m 0666 /dev/ost/net2      c 250 135
> mknod -m 0666 /dev/ost/osd2      c 250 136
> 
> cd /dev/ost
> ln -s ca0             ca
> ln -s video0       video
> ln -s sec0           sec
> ln -s audio0       audio
> ln -s frontend0 frontend
> ln -s demux0       demux
> ln -s dvr0           dvr
> ln -s osd0           osd
> ln -s net0           net
> 
> 
> 
> ************************************************ 
> END
> 
> 
> 
> As you can see, the're a leap of 64 for every set in the minor description.
> I have changed this file by adding another set (3) using minors from 192 to 200, 
>because I have currently 4 DVB-S on my box, and it works.
> My question is: can I modify this file so that I can change this gap (in some cases 
>it might be called a minor-shift number) between the drivers, and if NOT, then it 
>means that we cannot use more than 4 DVB cards (>255!!!) on the same machine 
>(remember the DVB_NUM_DEVICES in dvbdev.h is set to 16!) ???
> 
> 
> Thanks for any reply.
> Aurelian
> 
> 
> -- 
> Info:
> To unsubscribe send a mail to [EMAIL PROTECTED] with "unsubscribe linux-dvb" as 
>subject.


-- 
Info:
To unsubscribe send a mail to [EMAIL PROTECTED] with "unsubscribe linux-dvb" as 
subject.

Reply via email to