LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How to make two instances of kernel module ....??? Help. (https://www.linuxquestions.org/questions/linux-software-2/how-to-make-two-instances-of-kernel-module-help-654059/)

skate 07-07-2008 06:43 AM

How to make two instances of kernel module ....??? Help.
 
Hello guys., I am trying to make two same instances of 1 kernel module...,

I am using BTSCO (Bluetooth Alsa) for Bluetooth headphones .., I want to install its module twice and start it 2 times..., how can I do that?
I have installed it already and It works just fine....

Any help is appreciated..,

Thanks.

:scratch:

jomen 07-07-2008 08:30 AM

You say you want to install it twice - because you assume that will be the way to solve whatever problem you want to solve.
But: What is the actual problem? What do you want to do?
Assumptions can be misleading.

skate 07-07-2008 09:00 AM

Quote:

Originally Posted by jomen (Post 3206613)
You say you want to install it twice - because you assume that will be the way to solve whatever problem you want to solve.
But: What is the actual problem? What do you want to do?
Assumptions can be misleading.


The problem is that this driver/kernel module.. suits only for 1 Bluetooth Pair...,
I want to start both (2) Pairs separated..., so to use first BT pair with 1 application and the other BT pair with other application....,

At this moment.., when I start btsco.., and connect both BT headsets.., when I start application they start fight each other who will stream...., thats my problem...,

So I have read that if I make another kernel instance of the module I will be able to start btsco as one more process then they will not fight started with some applications...

sundialsvcs 07-07-2008 05:51 PM

I don't know what you "read" or where, but I think you're barking up the wrong tree.

Mr. C. 07-07-2008 06:07 PM

Kernel modules are loaded and associated with particular hardware device IDs or descriptions. Simply renaming the module, or trying to "install its module twice and start it 2 times" doesn't make sense and won't work. Driver's are not designed to be loaded multiple times and they will conflict with each other.

I dont' have any other advice to give, other than you'll need to try a different approach.

jomen 07-08-2008 03:17 AM

Quote:

The problem is that this driver/kernel module.. suits only for 1 Bluetooth Pair...,
this ... is very probably not true - more likely it is a matter of how to configure it? - are all the needed things in place?

only some thoughts on the problem:
- it surely is possible to connect more than one BT device at the same time - something on that I found here:
http://www.internettablettalk.com/fo...ead.php?t=5228
(one point was that its important who is master and if role-switch is possible - I personally have seldom used BT-Headsets but remember that it might be a restriction which comes from the headset itself - don't know...)

Information that I found and which seems relevant and well organized is in the different Wikis for Gentoo - the basic principles are the same in any distribution.
http://gentoo-wiki.com/Bluetooth_headset

I hope this will help you further.


All times are GMT -5. The time now is 09:24 AM.