devfs rule: ioctl DEVFSIO_SAPPLY: No such process (???)

OSS specific BSD discussion (FreeBSD/NetBSD/OpenBSD)

Moderators: cesium, dev, kodachi, hannu

devfs rule: ioctl DEVFSIO_SAPPLY: No such process (???)

Postby FreeBSD Prospect » Fri Feb 17, 2006 11:37 am

Hi!

I am trying to get the OSS soundsystem working for my nforce2 mainboard since
yesterday, but with mixed success. The OSS driver is generally setup
correctly and working, which means osstest outputs the demosound.

My problem now seems to be the devfs, because I am trying to apply the ruleset
to the audio devices in /dev, so that a normal user can access the sound in
KDE.

I used the following code for /etc/devfs.rules (which are given in this forum thread):

Code: Select all
[oss_rules=200]
add path 'dsp*' mode 666
add path 'mixer*' mode 666
add path 'audio*' mode 666
add path 'midi*' mode 666
add path sequencer mode 666
add path music mode 666
add path dmfm0 mode 666


The ruleset should be processed by the oss.sh startscript by calling:

Code: Select all
/sbin/devfs rule -s 200 applyset


but this command only outputs:

Code: Select all
devfs rule: ioctl DEVFSIO_SAPPLY: No such process


and nothing happens to the device nodes in /dev. I already tried to play
around with devfs & devfs.rules, but whatever I tried, either it only gives
the above error message, or simply gives no feedback and does nothing.

If I run "/etc/rc.d/devfs restart", nothing happens.
If I run "devfs ruleset 200 && devfs rule applyset" no feedback, and no change
in /dev.

I tried a similar approach for changing ownership and perms for /dev/acd* with
another ruleset, I found on this mailinglist, but exactly the same result.

For some reason unknown to me, devfs seems not be working on my system. I did
nothing special on this installation. Installed from the 6.0-RELEASE
install-cd, updated world to 6.1-PRERELEASE, installed the latest OSS driver
package, configured it for nforce2, osstest OK, installed KDE by ports, and
now I am stuck to get sound working in KDE...

Any comments?
FreeBSD Prospect
 

Re: devfs rule: ioctl DEVFSIO_SAPPLY: No such process (???)

Postby BSDKaffee » Sat Feb 18, 2006 9:48 pm

FreeBSD Prospect wrote:The ruleset should be processed by the oss.sh startscript by calling:
Code: Select all
/sbin/devfs rule -s 200 applyset
but this command only outputs:
Code: Select all
devfs rule: ioctl DEVFSIO_SAPPLY: No such process
This is because after adding the rules to /etc/devfs.rules, devfs need to be restarted so that it reparses the rulesets. That error message is saying that it knows nothing of the ruleset (200) you specified. After adding the rules to /etc/devfs.rules you must run as root:
Code: Select all
# /etc/rc.d/devfs restart
It will not give any feedback when it is restarted, it will just reparse the rulesets, etc.

After devfs is restarted, the ruleset must be applied. This is done by the oss.sh script. The ruleset should only be applied after OSS is started because the device nodes need to exist before applying the rules.

Hopefully that helps.
User avatar
BSDKaffee
Member
 
Posts: 28
Joined: Tue Jul 19, 2005 7:17 pm


Return to BSD

Who is online

Users browsing this forum: No registered users and 1 guest

cron