How to detect shutdown Solaris within driver?

How within driver to detect rebooting system, but not oriented on standart scrips (rc5, rc6) and standart command (like init 5, init 6) ?

I am very big on following the DDI exactly. I'll tell you a way to cheat, but I'll also tell you not to do it. If you use this, note that your driver could unexpectedly break with any new Solaris release. Watch out with each release to see that the dev_ops definition has not changed in a way that breaks your driver.
The devo_reset function in dev_ops must be set to nodev according to the DDI, but I do know of several drivers that use devo_reset to do cleanup before shutdown.
<PRE>
int
xx_reset(register dev_info_t *const dip, const ddi_reset_cmd_t cmd)
if (cmd != DDI_RESET_FORCE)
return (DDI_FAILURE);
</PRE>

Similar Messages

  • How do I shutdown from within Genome??

    How do I shutdown from within Genome??
    There is only a logout option - and that do not work.
    If I open a terminal and enter init 5 nothing happens.
    Or so it seems some services maybe stop.
    BUT there is no logoff and shutdown of Genome. So I swicth
    off my pc and next time I boot up my file system was corrupted.
    FSCK did not work I end up install everything this time use bypass
    option and install the patches for PC-Solaris 8.
    How do I go to a command line environment within Genome
    a .dtconfig stop ?? Will this let Genome come down without
    booting up and loosing my system again??

    ok... i figured it out... a 'Sprite' is really also a DisplayObjectContainer... so if i make my class an extension of Sprite i can 'addChild' to the Sprite and then add them all to the stage at once by adding Sprite to the stage...

  • How to detect OS from within java?

    hi,
    i have a method that reads all the classes in a directory. to do this i use the code
    File dir = new File(DIRECTORY_PATH);
    the variable DIRECTORY_PATH is a windows based directory path and so if i port my app to a mac it will not work 'cos of the different directory structure.
    is there any way i could detect the OS before this method is called so i can change the directory path structure?
    many thanks in advance
    benny

    im reading all the classes available in a dir.
    i then populate a list box with the classes available
    the user can then select the classes he wants created from this list.the code goes something like this:
    File dir = new File(DIRECTORY_PATH);
    String [] classes = dir.list( new FilenameFilter()); //filter gets files ending with .class
    then i populate the list with these, user selects wanted classes and presses create.
    then i use Class.forName() to create the specified classes.
    will this work on both OS? is there a better way to do this if not?

  • How to detect USB Flash Drive name in LabVIEW

    Hi there
    I was looking for how to detect a USB Flash Drive name in Labview
    appearently every time i insert USB Flash Drive in a computer, windows assign it a different name
    once "J:" and sometimes "M:"
    Is there anyway to obtain USB Flash Drive name programmatically in Labview ?
    Because in my program an user shouldn't be able to access HDD Drives except his USB Flash Drive (for inserting some file ...)
    thank you and excuse me for my poor english 

    I was able to get the demo.vi to load, but it could not load the other two because there is no block diagram associated with those.  I'm not sure why this is.  I haven't had any issues with other llbs before.
    Reese, (former CLAD, future CLD)
    Some people call me the Space Cowboy!
    Some call me the gangster of love.
    Some people call me MoReese!
    ...I'm right here baby, right here, right here, right here at home

  • How do I have itunes use/detect my external hard drive and place music on the external drive from the itunes store? There are no music files on my pc yet.  I will like to do this after installing itunes 11 on my pc for the first time. I am using windows 7

    How do I have itunes use/detect my external hard drive and place music on the external drive from the itunes store? There are no music files on my pc yet.  I will like to do this after installing itunes 11 on my pc for the first time. I am using windows 7.  HP computer intel Dual Core.  Thanks for any help!

    Hey idw3,
    Welcome to Apple Support Communities, and thanks for the question. Follow the instructions on this article to move your iTunes Media folder to an external hard drive:
    iTunes for Windows: Moving your iTunes Media folder
    http://support.apple.com/kb/HT1364
    Regards,
    David

  • How to make lumia 920 detected as USB mass drive ( as flash memories) instead of MTP

    i need to know How to make lumia 920 (running windows phone 8.1) detected as USB mass drive ( as flash memories) instead of MTP

    For help using Windows Phone please post on the Windows Love forums on http://answers.Microsoft.com
    The developing for Windows phone forum is for developers to discuss writing their own Windows phone apps.

  • How can detect that cdrom drive were opened and closed?

    How can detect that cdrom drive were opened and closed?

    I'm sure there are more elegant and complicated ways to accomplish this using Windows SDK function calls to kernel32.dll or something extravagant like that, but if you want the bare-bones easy way to check if the CD-ROM tray is currently opened, then simply use System Exec to query the CD-ROM drive from the command line. One example of this is shown below.
    Use the command line function cmd /c d:, where d: is your CD-ROM drive. If the Standard Error output from System Exec.vi is "The device is not ready." followed by a carraige return and line feed, then voila, your CD-ROM drive is open. If not, it's closed. Anyone have a better idea? I'm sure one exists...
    Message Edited by Jarrod S. on 02-16-2006 12:23 PM
    Jarrod S.
    National Instruments
    Attachments:
    CDROM_Check.JPG ‏22 KB

  • How to detect solar cell out of image

    Hello All,
    Sorry, I have post this question on other forum but didn't get any answer. Please help me in this task. Actually, I am trying to detect the solar cell out of image and I thought making a histogram of the image could be a step one but I am no where now. Could you please provide me an example of similar task which can be helpful. Thanks
    Regards
    Solved!
    Go to Solution.
    Attachments:
    Histrogram report.vi ‏19 KB
    A_si_BinX5_biny5.jpg ‏119 KB

    Your original thread is not dead.  I propose to close this thread and stuck with the origin.
    Hell!  In the meanwhile the other thread references this one.  It seems you now have to maintain two threads for one issue ...

  • How to partition 120 GB hard drive MacBook for OSX+Win (BC+Par.)? Fat/NFTS?

    After many happy years with my PowerBook G4 12" (I will miss it definitely, as compact and cute as it is ;-() I'll now switch to a new MacBook 2.16 GHz with 2 GB RAM and a 120 GB hard drive.
    I will have to use Windows (not yet sure if XP or Vista), as I need special software not available for the Mac, so my choice will be Parallels, so that I can work in Os X and at the same time use those Windows Apps I need.
    However, I also want to be able to boot Windows-only with BootCamp, so I already learned I have to install Windows on its own partition.
    So my question is:
    How shall I partition the hard drive?
    * If I have one big partition for OSX + documents and the rest (maybe 30 or 40 GB) for Windows, I won't be able to access my documents from Windows, right?
    * So I would have to keep the data I want to access from within Windows on a PC formatted partition (if I don't want to pay for a software like MacDrive)?
    Or can Windows running in Parallels read from a HFS partition?
    * Does this mean: if I want to access (read and write) my documents in OSX and Windows, I have to keep them on a Fat32 partition?
    -> This could be the partition where Windows is installed (but I'm not sure if I feel comfortable with that solution) of I would need a 3rd partition (Fat32) for data which would cause quite a big "segmentation" of the hard drive.
    How did you resolve this problem?
    Unfortunately, I don't see that I could really "separate" data I only have to access from Windows and those I only want to access in OS X, so in my opinion for me they all have to be in one place.
    Looking forward to your comments,
    Martin
    MacBook 2.16 GHz, 2 GB RAM, 120 GB HD (white)   Mac OS X (10.4.9)  

    You should probably ask all your Boot Camp quesitons in the Boot Camp discussions:
    http://discussions.apple.com/forum.jspa?forumID=1165
    And your Parallels questions in the Parallels forums:
    http://forums.parallels.com

  • 10.5.8 won't detect any external hard drives

    I want to update my 10.5.8 Macbook Pro which I bought in 2008.  It runs incredibly slow, and I want to reformat it before updating with Snow Leopard.  The problem is that my computer won't detect any external disc drives, so I can't back up my important files.  Is there any way to fix this, or is there something I'm missing?
    I'm also wondering if I'll be able to reformat without my original OSX install disc that came with my computer, and if so, how?  Thanks in advance.

    If you are going to be upgrading to OS X Snow Leopard, the installer for that should be able to format your drive for you before you do the installation.  I'm assuming that you have those CD's for your computer as you need discs to be able to ugrade to Snow Leopard.  What happens when you plug in an external drive?  Does it just not recognize the drive, or do you just not have it selected to show the drive on your desktop?  With Finder being the top window, click on the Finder Menu and select preferences > select general in the tabs at the top and then make sure that External discs is checked.

  • How to detect the OS version and the hardware info??

    Hi all, according to the project needs, I to know how to detect OS version and the hardware info.
    The point is to detect client's OS version, weather Win98, 2000, XP, Vista.
    I have been search the information for several days already.
    But can not really found a example which returns the OS version like"Windows XP Version 2002 *****".
    And also could not find the CPU type such as"Core 2 due, or  pentium D".
    Is there anyone have done this before?
    Thanks.
    The Info I need looks like the photo below.
    Message Edited by EricLu on 07-21-2009 08:09 PM

    Well, in fact I have the VI and also read the topics as well...... The searching tag is OS info , system info......... After reading your post, now I understand the relation between the version number and the real OS version now, tks.  And another problem is, the processor type returned within the VI have only 4 type:"INTEL 386, INTEL 486, PENTIUM, Unknown". 
    It can not really return my CPU TYPE. For example the desktop I’m using now is a Pentium, D , 2.80G, 2.80G.. and it only returns type "Pentium". That's why I'm asking is there any other way to do this...... (( Please forgive me if you can not really know what I'm talking about in my first post, now I know how bad my english is.......   ))  I guess I can only try to find out the solution from the registry then... Thanks for your information and reply. 
    Message Edited by EricLu on 07-21-2009 09:25 PM
    Message Edited by EricLu on 07-21-2009 09:26 PM

  • How can I find the JDBC Driver version

    Hi,
    How can I find the JDBC Driver version installed on my Sun Solaris machine which
    has Weblogic Server 7.0 installed on it. Is there some kind of tool/command to
    do so or does Weblogic console say something about it
    Thanks
    Parikshit Khanna

    Parikshit Khanna wrote:
    Hi,
    How can I find the JDBC Driver version installed on my Sun Solaris machine which
    has Weblogic Server 7.0 installed on it. Is there some kind of tool/command to
    do so or does Weblogic console say something about it
    Thanks
    Parikshit KhannaThere is a jdbc DatabaseMetaData call getDriverVersion().
    The best thing to do is to download Oracle's latest appropriate
    driver from their site, and edit the start-weblogic script to
    make sure the downloaded driver is ahead of any weblogic stuff in
    the server's classpath. We do ship a driver, but Oracle usually
    has a newer better one very soon after that...
    Joe

  • Detecting an installed printer-driver with jdk 1.3

    Hi all,
    is there anybody who knows how to detect all installed printers and how to figure out which printer is choosen by user? I can not find anything about this topic...
    Thank you in advance - netti

    John,
    In the case of the R800, 3.0 has been around for about one year. However, 3.09 was first posted to Epson Europe on 29 October 07 and 6 November 07 to Epson Oceania (Australia and New Zealand). The driver is supposed to be fully compatible with Leopard, but I have no way of checking. According to both Europe and Oceania, drivers for the remaining R series printers (1800, 1900 and 2400) are due out later this month.

  • HT2173 How to know when a hard drive has failed ?

    How to know when a hard drive has failed ?

    Machine doesn't boot.  You experience strange crashes.  Gets wrong results.  Your harddrive is five or more years old.  Time to consider repacing it.   You do have backup?
    You may want to run these "standard" fixes if the problem persists.
    1) Check the amount of free space on your harddrive.  You should have a several gigs free.
    2) You should run disk utility
         a) verify the disk
         b) update your permissions.
    3) Try a safe boot.
        Shutdown your machine.  Hold down the shift key.  Poweron.  Wait awhile Wait awhile while you harddrive
          is being checked.
        http://support.apple.com/kb/ht1455
    4) You may want to run applejack to clean up your machine.
         http://applejack.sourceforge.net/
    a lot more ways to fix your Mac.
    http://www.thexlab.com/faqs/faqs.html
    verify & repair your startup drive
    To verify & repair you file system on the startup drive, you will need to run disk utility from you installation DVD.
    This article  will tell you how to get to disk utility.  Once in a disk utility, you can go and attempt to recover the disk.
    http://support.apple.com/kb/TS1417
    To repair your startup drive, you will need to run disk utility from your startup DVD.
    Mac OS X 10.4: About the utilities available on the Mac OS X 10.4 Install DVD
    http://support.apple.com/kb/HT2055
    How to run disk utility from your startup DVD.
    Insert your  startup DVD  into your reader.  Power down your machine.  Hold down to the c key.  Power on your machine.  This will bootup your startup DVD.
    This will bring you to a panel asking you for your language.  Pick your language.
    You you come to the Install Mac OS panel.  Do not install.
    Click on Utilities menu item.  This will give you a pulldown list of utilities.
    Click on the disk utility.
    You are now in disk utility.  Pick your disk.  Click on repair it should be on the lower right of the panel.
    Once the repair completes successfully, you should update your permissions.
    Verify a disk
    As an alternative, you can verify that the filesystem on the disk is correct. You will not be able to repair the file system.
    I suggest that you use disk utility to verify that your startup disk is OK. 
    Macintosh-HD -> Applications -> Utilities -> Disk Utility 
    Start up disk utility.  On the left pane view, you will see a list of all your disks.  
    Click on your startup disk.
    Click on the First Aid  Tab.
    Click on verify.  
    Hopefully your disk will verify.  If not, you have to boot from your installation DVD and run Disk Utility from there to attempt to repair your file-system.

  • I received an error message; We have detected an incompatible display driver.

    I received an error message; We have detected an incompatible display driver. All my display drivers are up to date. How can I find out which display driver is not compatiable? How can I fix this issue?

    oleg_skriabin
    Did you realize that you posted in a 2 year old thread?
    What version of Premiere Elements do you have and on what computer operating system is it running?
    Are you having a problem with the following error message?
    We have detected an incompatible display driver--please update
    If so, you might want to start your own new thread on your specific issue in your specific computer environment, including
    details.
    Have not seen the above error message respond to your suggestion
    Try to make your monitor screen resolution higher
    so it will interesting to learn of the details of your situation.
    ATR

Maybe you are looking for