Help, how can I create the minor number if

I know my device path is c0t3d2s2. eg. how can create a minor number which will be used as an input to makedevice() based upon the above info. Thanks in advance.

Hi!
The primery thing under Solaris is /device tree. The entries in this
directory, so called device special files or minor nodes, are created when drivers
attached/loaded, usually in attach routine.
The device special files are created under /devices with a help of
ddi_create_minor_node. There is a way to create compatibility links
under /dev like /dev/dsk/c0t3d2s2. How to do it?
Each minor node has so called "node type" (see:
ddi_create_minor_node(9F), /usr/include/sys/sunddi.h).
Solaris has programs family (devfsadm in S8) to make links into /dev,
according "node type"
/usr/sbin/disks - makes links for "node type" = DDI_NT_BLOCK
/usr/sbin/tapes - makes links for "node type" = DDI_NT_TAPE
/usr/sbin/ports - makes links for "node type" = DDI_NT_SERIAL
/usr/sbin/audlinks - for "node type" = DDI_NT_AUDIO
/usr/sbin/devlinks - for "node type" = DDI_PSEUDO and some other types.
These programs are called each time the system is reconfiguration-
booted. They only know predefined "node type" and have some internal
rools, expressed by regular expressions, e.g. for "audlinks":
$ strings /usr/lib/devfsadm/linkmod/SUNW_audio_link.so
((nt)|(te)|(aux))\,((0)|(0ctl)|(d)|(b1)|(b2)|(mgt)|(dtrace))
sound,
sound/([0-9]+)
isdn/([0-9]+)
sound,
sound/
isdn/
mgt,mgt
isdn/
/mgt
audio
ddi_audio
audio
^sound/[0-9]+(ctl)?$
audio
^isdn/[0-9]+/mgt$
audio
^isdn/[0-9]+/aux/0(ctl)?$
audio
^isdn/[0-9]+/(nt)|(te)/((dtrace)|(mgt)|(b1)|(b2)|(d))$
audio
^audio(ctl)?$
SUNW_audio_link: minor_init: regular expression bad: '%s'
((nt)|(te)|(aux))\,((0)|(0ctl)|(d)|(b1)|(b2)|(mgt)|(dtrace))
audio
sound/%d
audioctl
sound/%dctl
SUNW_audio_link: audio_process: can't find match for'%s'
When you buld /dev subtree for your driver you must either to follow
they demands or create links by hand (by script).
You can also set the access rights for the device special files from
within the driver.
You can do it with a help of "add_drv". See -m key. Information from
"add_drv -m" fall into "/etc/minor_perm" and will use each time when
minor node will create.
Vitaly Filatov
Moscow, Russia
[email protected]

Similar Messages

  • Help:How can I run the J2EE Client Application? Thanks

    Help:How can I run the J2EE Client Application that will access the remote J2EE1.4 application server which runs on another host computer?
    I have developped a stateles senterprise java bean name converter and deloyed it in the j2ee1.4 application server on the host machine A. The converterbean provides the remote home interface and remote interface. At the same time I have developped the j2ee application client named convertappclient. When I access the conveter bean at host computer A through the script 'appclient.bat' as 'appclient -client convertappclient.jar', the client can access the bean sucessfully. Now I want to access the bean through the script 'appclient.bat' at host computer B,what files should I copy from host computer A to host computer B;and what the command line should be like? Thanks!
    The following are the code of the enterprise java bean and it's home interface .
    The client code is also provided.
    The enterprise java bean:
    package converter;
    import java.rmi.RemoteException;
    import javax.ejb.SessionBean;
    import javax.ejb.SessionContext;
    import java.math.*;
    public class ConverterBean implements SessionBean {
    BigDecimal yenRate = new BigDecimal("121.6000");
    BigDecimal euroRate = new BigDecimal("0.0077");
    public ConverterBean() {
    public BigDecimal dollarToYen(BigDecimal dollars) {
    BigDecimal result = dollars.multiply(yenRate);
    return result.setScale(2, BigDecimal.ROUND_UP);
    public BigDecimal yenToEuro(BigDecimal yen) {
    BigDecimal result = yen.multiply(euroRate);
    return result.setScale(2, BigDecimal.ROUND_UP);
    public void ejbCreate() {
    public void ejbRemove() {
    public void ejbActivate() {
    public void ejbPassivate() {
    public void setSessionContext(SessionContext sc) {
    The bean's remote home interface :
    package converter;
    import java.rmi.RemoteException;
    import javax.ejb.CreateException;
    import javax.ejb.EJBHome;
    public interface ConverterHome extends EJBHome {
    Converter create() throws RemoteException, CreateException;
    The bean's remote interface:
    package converter;
    import javax.ejb.EJBObject;
    import java.rmi.RemoteException;
    import java.math.*;
    public interface Converter extends EJBObject {
    public BigDecimal dollarToYen(BigDecimal dollars) throws RemoteException;
    public BigDecimal yenToEuro(BigDecimal yen) throws RemoteException;
    The j2ee application client:
    import converter.Converter;
    import converter.ConverterHome;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.rmi.PortableRemoteObject;
    import java.math.BigDecimal;
    public class ConverterClient {
    public static void main(String[] args) {
    try {
    Context initial = new InitialContext();
    System.setProperty("java.naming.factory.initial","org.jnp.interfaces.NamingContextFactory");
                   System.setProperty("java.naming.provider.url","jnp://10.144.97.250:3700");
    Context myEnv = (Context) initial.lookup("java:comp/env");
    Object objref = myEnv.lookup("ejb/SimpleConverter");
    ConverterHome home =
    (ConverterHome) PortableRemoteObject.narrow(objref,
    ConverterHome.class);
    Converter currencyConverter = home.create();
    BigDecimal param = new BigDecimal("100.00");
    BigDecimal amount = currencyConverter.dollarToYen(param);
    System.out.println(amount);
    amount = currencyConverter.yenToEuro(param);
    System.out.println(amount);
    System.exit(0);
    } catch (Exception ex) {
    System.err.println("Caught an unexpected exception!");
    ex.printStackTrace();
    }

    Surprisingly I find an upsurge in the number of posts with this same problem. I recently found a post which gave a nice link for this. Follow the steps and it should help:
    http://docs.sun.com/source/819-0079/dgacc.html#wp1022105

  • How can I find the serial number for my stolen iPad that's associated with my apple ID ?

    How can I find the serial number for my stolen iPad that's associated with my apple ID ?

    If you registered it with Apple check your registered items at Your Support Profile for Registered Purchases. Also, see iOS- How to find the serial number, IMEI, MEID, CDN, and ICCID number.
    What To Do If Your iDevice Is Lost Or Stolen
    If you activated Find My Phone before it was lost or stolen, you can track it only if Wi-Fi is enabled on the device. What you cannot do is track your device using a serial number or other identifying number. You cannot expect Apple or anyone else to find your device for you. You cannot recover your loss unless you insure your device for such loss. It is not covered by your warranty.
    If your iPhone, iPod, iPod Touch, or iPad is lost or stolen what do you do? There are things you should have done in advance - before you lost it or it was stolen - and some things to do after the fact. Here are some suggestions:
    This link, Re: Help! I misplaced / lost my iPhone 5 today morning in delta Chelsea hotel downtown an I am not able to track it. Please help!, has some good advice regarding your options when your iDevice is lost or stolen.
      1. Reporting a lost or stolen Apple product
      2. Find my lost iPod Touch
      3. AT&T. Sprint, and Verizon can block stolen phones/tablets
      4. What-To-Do-When-Iphone-Is-Stolen
      5. What to do if your iOS device is lost or stolen
      6. 6 Ways to Track and Recover Your Lost/Stolen iPhone
      7. Find My iPhone
      8. Report Stolen iPad | Stolen Lost Found Online
    It pays to be proactive by following the advice on using Find My Phone before you lose your device:
      1. Find My iPhone
      2. Setup your iDevice on iCloud
      3. OS X Lion/Mountain Lion- About Find My Mac
      4. How To Set Up Free Find Your iPhone (Even on Unsupported Devices)

  • I want to setup Lightroom on my new laptop.  I have my latest serial number but it is the upgrade serial number for LR5.  I do not have the original serial number from my purchase of LR3.  How can I recover the serial number from my original purchase of ?

    I want to setup LR on my new laptop.  I have the serial number from my latest purchase but not the original purchase of LR3.  How can I recover the serial number from my original LR purchase?

    If you did register it back then, open your Adobe account with your Adobe ID and you will find it there: Find your serial number quickly
    If you still have it installed, open the System info in Help menu or look here:
    C:\ProgramData\Adobe\Lightroom\Lightroom xy Registration.lrreg

  • How can i create the exceptions in query

    Hi Firends,how can i create the exceptions for key figures and charectristics and how can can i assign the colours and when we will create the variables for exceptions..
    please let me know..
    Assign Points surely..
    regards

    Hi,
    Not sure i understnad your request 100%, but exceptions for key figures are created as explained in http://help.sap.com/saphelp_nw04/helpdata/en/68/253239bd1fa74ee10000000a114084/content.htm
    and
    http://help.sap.com/saphelp_nw04/helpdata/en/1a/615f64816311d38b170000e8284689/content.htm
    Assign points if useful,
    Xibi

  • Could any one tell me that How can i create the service User ie j2ee SID

    hi all,
    In the implementation of SPNego Authentication schem in my portal system.
    i want to create the service user ie .j2ee-<SID>.
    <b>could any one tell me that How can i create the service User ie j2ee-<SID> in my visual administrator??</b>.
    any help will be highly Appretiated .
    thanks and regards.
    vinit soni.

    Vineet,
    the user management tab opens in Read Only mode - thats why the button is coming as disabled. There is a button for switching into Edit mode - it looks like a pen / pencil on the top bar. Click on that - your "Create User" button would be enabled.
    Also regarding creation of Service User via code level you can see <a href="https://www.sdn.sap.com/irj/sdn/thread?messageID=1057074">THIS</a> thread. And <a href="http://HERE">http://help.sap.com/saphelp_nw04/helpdata/en/f9/e3162ec55f4df6922d161f3785012a/frameset.htm</a>HERE[/url] is the SAP Help documentation on required permission settings.
    Regards,
    Shubhadip
    Message was edited by:
            Shubhadip Ghosh
    Message was edited by:
            Shubhadip Ghosh

  • How can I get the serial number for Premiere 11?

    In october 2012 I´ve bought a bundle pack with Photoshop Elements 11 and Premiere 11. After a hard disk crash i was about to reinstall them both but my wife has trown the envelope in the garbage... = No Serial number available!!
    I´ve registered the serial number for Photoshop Element 11 on Adobe, but not the key for Premiere (they are on the same dvd).
    How can I get the serial number for Premiere 11?

    I do not think there is any way for anyone here to help you (we are just other users) so you are going to have to contact Adobe
    Forum for Download & Install & Setup problems
    http://forums.adobe.com/community/download_install_setup
    Chat http://www.adobe.com/support/download-install/supportinfo/
    -or http://www.adobe.com/support/chat/ivrchat.html
    And tell your wife to be more careful about throwing things away

  • How can we create the DBC file?

    Hi all,
    I am attempting to run the test_fwktutorial.jsp within the toolbox.jws/Tutorial.jpr project in Jdeveloper . We have to provide the Oracle application DB connection in the project properties ( we have to provide this as a DBC file) . How can we create the dbc file from the Database connection ? i tried to export the DB connection in Jdev , but it is getting exported to xml file rather than dbc file . Please help to fix this.

    Yes, you can do that.
    Put both the DBC files under dbc_files\secure folder.
    You can change the dbc files from project settings and point to the desired file.
    I am not sure, but maybe you need to stop JDevloper and start again for the new DBC file to take effect.

  • Did i buy Adobe Photoshop & Adobe premiere elments but uTrshed  the box before instalation how can i get the serial number?

    did i buy Adobe Photoshop & Adobe premiere elments but uTrshed the box before instalation how can i get the serial number?

    I suggest that you Contact Customer Care - click on the Still need help? button to chat with an agent.

  • I've lost my iPhone 5 How can I have the serial number of the phone Information to be deleted

    I've lost my iPhone 5
    How can I have the serial number of the phone
    Information to be deleted
    Please Please Help Me

    Hi Mohammad,
    I'm sorry that you have lost your phone.
    If you need to erase the personal information on your phone remotely, here are the steps to do that:
    iCloud: Erase your device remotely
    If your device is lost or stolen, you can erase the personal information (such as your contacts, email, and music) and settings on that device to prevent anyone else from seeing or using your information.
    Important:   Before you erase all the information on your device, try to locate it or play a sound on it. After you erase the information on an iOS device, you won’t be able to use Find My iPhone to locate it or play a sound. You may still be able to use Find My iPhone to locate your Mac after you erase it.
    If you erase your iOS device and then find it, you can restore the information on the device using iCloud Backup (if backup was turned on before you erased it) or iTunes. For more information, see the user guide for your device in Safari bookmarks or on the Apple Support website.
    To erase your device remotely, you need to have set up Find My iPhone on the device before it was lost.
    I hope this information helps ...

  • How can I check the serial number in WM?

    Dear Experts
    I have a question: how can I check the serial number in WM? Like I want to know which storage type a serial number exist in. Is there a report can show this information? Currently I only can check the serial number at storage location level.
    Please help. If there is no such a report, which table can I use for develpment?
    Thanks a lot!
    Tony

    Hi Tony,
    Unfortunatelly, you cannot manage serial numbers in bins with ERP WM. For this, you need to have a look to the new warehousing solution from SAP, I mean EWM (extended warehouse management) in SCM. There you can manage an see serial numbers in bins.
    Rgds,
    Philippe

  • How can i fix (the maximum number of free accounts have been activated on this iphone)

    how can i fix (the maximum number of free accounts have been activated on this iphone)?
    please help to me.it`s for iphone 4S.

    You can't 'fix' it. It's not broken. That's the way it's designed.

  • How can I get the serial Number of...

    How can I get the serial Number of Table whether or the hardware and the serial Number Windows?

    There most be a way, becouse if you will got to this game site:
    http://en.dinorpg.com/ and try to register more then 3 times, you will get
    an error that you can only have 3 acount on one computer. Even if you will
    reinstall your windows version you still get the same error. If they can do
    it so there most be a way.
    2009/8/20 Greg Lafrance <[email protected]>
    You can't access such info from Flex/AIR apps. There's just no way.
    >
    If this post answered your question or helped, please mark it as such.
    >

  • I have lost my iphone, how can i get the IMEI number?

    i have lost my iphone, how can i get the IMEI number?

    If you need the IMEI for an insurance or police report:
    how to find IMEI, etc
    http://support.apple.com/kb/HT4061?viewlocale=en_US&locale=en_US
    But as Carolyn Samit said above, you cannot track the iPhone by IMEI.

  • How can I find the serial number for my creative suite CS6 I bought it from a store.

    How can I find the serial number for my creative suite CS6 I bought it from a store.

    https://www.adobe.com/account.html for serial numbers or subscriptions on your Adobe page... or
    Lost serial # http://helpx.adobe.com/x-productkb/global/find-serial-number.html

Maybe you are looking for

  • How can change my payment info?

    I'm trying to purchase something and I typed in my account number but I still can't purchase anything!

  • Custom Error Message (How to?)

    Hello, I have a removeInstance tied to a button in the click event.  I know this will generate a default Adobe error if the minimum number of rows have been reached. I would like to replace the default Adobe error of "index out of bounds" with a more

  • MP4 movies NOT TRANSFERING TO ITUNES? BT THEY ARE CORRECTLY FORMATED!!!

    I NEED ALOT OF HELP PLEASE! i converted my movies 3 different times becuase my itunes would not able me to transfer them into it. i need somebody to please hel me transfer them!

  • WS Addressing

    Hi, Is there a way to add WS Addressing elements to a SOAPMessage object. I saw that there is a java implementation of WS Addressing called JAX-WSA , but I am having trouble finding standard libraries to use to generate the element. Please advice on

  • URGENT!!!  Please help~ Process Multiple Files says folder empty

    When I try to use the Process Multiple Files feature, it is giving me a message saying that the process was stopped or cancelled. Press continue or stop.  When I click continue, it say that the folder is empty.  It is not empty.    This is  what I us