Finding filenames in kernel mode

Does anybody knows of a way to get the file name by the file descriptor index transfered to the system calls ?
Oren
p.s. please respond to [email protected]

The short answer is "there is NO such a way".
There are good reasons for it:
1. Not every file descriptor is referring to a named entity.
2. Even if the file descriptor was obtained by the means of open()
or creat() system call, there is no warranty that the name still
exists - the file/device/directory/whatever might be renamed or
deleted.
3. Even if the file descriptor IS referring to a named entity,
the latter may have more than one name - which one would you like
to get?
4. The name (in general) is not an attribute of the file - it's just
a convinient way to keep reference to specific inode/vnode.
Summarizing, you may (at best) get the inode number of the entity...
You may then scan the entire tree of the filesystem looking for the
name(s) of the inode.
There is such a thing like name cache (which is global), but it may
happen (and it usually happens) that the information you need is not
cached any more.
You may, however, build your own stackable filesystem that would stack
over the [subtree of] the real one and then keep track of all opened
files/directories. Big deal, egh?

Similar Messages

  • How do I find wether Solaris 8 is running in 32 bit or 64 bit kernel mode

    I have some questions
    1)Ho do I know wether solaris 8 is running in 32 bit kernel mode or 64 bit kernel mode.
    2)Is there any way that we can switch between 32 bit and 64 bit without reinstalling the OS.?
    3)Does the SunLink OSI 8.1.1 work with solaris 8(32 bit kernel mode) without any patch. If any patch required , can you tell me the patch that i need to install.
    Thanking in anticipation

    Hi,
    To find out wheter 32 or 63-bit mode
    # /usr/bin/isainfo -kv
    Now, switching between modes
    32-bit mode
    # eeprom boot-file=kernel/unix
    64-bit mode
    # eeprom boot-file=kernel/sparcv9/unix
    or OK prompt,
    32-bits mode
    boot kernel/unix
    64-bit mode
    boot kernel/sparcv9/unix
    or even,
    32-bit mode
    setenv boot-file kernel/unix
    64-bit-mode
    setenv boot-file kernel/sparcv9/unix
    Arrebola

  • UNABLE or CAN NOT Install Printer, Windows 8 calls it a Kernel Mode Driver

    Very similar to
    this thread.
    None of the provided solutions work.  I wish I could get a screenshot, but this is a computer I was working on for a friend and won't be back there for a couple of days.
    Things I have tried:
    Download absolute latest Windows 8 x64 Driver from HP's website for the specific printer in question (hp laserjet pro color m251nw).  Tried both "driver only" and "full installation" downloads.
    Told Windows to use a driver from Windows Update.
    There is no Citrix based application to uninstall anywhere on the computer.
    The computer is Windows 8 "standard" - so using GPEdit to Disable "Disallow installation of kernel-mode printer drivers" was not an option (although I did use a
    3rd party GPEditor to try to modify this setting anyway, to no avail).
    I used Advanced Startup to boot without Driver Signature Verification.
    Disabled Anti-Virus software to ensure it wasn't preventing installation.
    I ensured the local user on the computer had full permissions to the Devices and Printers menu.
    I tried to install everything using "Right Click / Run as Administrator"
    I tried to install using both Windows 7 and XP SP3 Compatibility Modes.
    I have ensured there are no files in the Print Spools folder (C:\Windows\System32\Spool\Printers\). and reset the print spooler.
    I am able to ping the network printer and it prints test pages, I do not believe there to be a problem with the printer itself, just some strange setting causing me all of these problems.
    HELP!  I'm an IT Pro but I spent 3 hours on this and I'm not used to being utterly defeated! 
    Thanks in advance for any and all advice!!!!
    Don't forget, if you find the help you need, click the "Propose as Answer" link at the bottom of the post containing the solution!
    NuAngel.net

    I wish I could get a screenshot
    What are the chances of it being a bogus message?  For that reason and others I would be running ProcMon to find, correlate and supplement any and all diagnostics which are being produced.  Filter with  Operation Is WriteFile.  You
    need to infer which WriteFile  corresponds with which message but that is relatively easy because the Detail contains a close approximation to each message's length.  In any case, you get to see all the files that were involved and easy access to
    them.
    Good luck
    Robert Aldwinckle

  • Question about ASE 15.7 kernel mode – process vs threaded

    Hi there,
    This question is related to upgrading Sybase ASE Server
    from version 15.5 to version 15.7 on Sun Solaris SPARC Operating System
    (Solaris 10). For the upgrade, I need to choose between threaded kernel and
    process kernel mode.
    1> Is the process kernel mode in ASE 15.7 identical to
    process kernel in ASE 15.5? Are there any changes to process kernel mode
    between version 15.5 and 15.7? With all the other configurations on the Solaris
    host being same (Number of CPUs, RAM, Storage, Sybase ASE Configuration
    parameter values like total memory, engines), will the performance on ASE 15.7
    in process kernel mode be same as on ASE 15.5?
    If there are differences in performance, what are they? What should I be monitoring on ASE 15.7 to see
    if there is performance issue on the ASE Server?
    2> For the threaded kernel mode, are there any performance
    overheads like more CPU usage? We are not planning to change the hardware
    configuration of the Solaris host during the upgrade.  What values should I be monitoring at the OS
    level OR Sybase ASE level to make sure that there are no performance issues? Is
    there any particular parameter that needs to be monitored closely when we
    change to threaded kernel mode?
    Are there any Sybase Configuration parameters that I need
    to tune for the New threaded kernel mode? If so, do you have any performance
    tuning tips (white papers, technical documents) for threaded kernel mode?
    3> What is SAP Sybase recommendation on which Kernel mode I
    should be using? I researched the SAP Knowledge Base articles for
    recommendations on which Kernel mode to use and I could not find a definitive answer.
    Thanks,
    Raj

    Actually with Solaris on SPARC, there is a very key consideration - you should be on ASE 15.7 sp50 or sp100 or higher AND have applied the kernel jumbo patch (Oracle BugID 16054425) from Solaris that fixes the issue in which they prohibited OS threads from issuing KAIO calls.   Then in ASE, you need to configure the 'solaris async i/o mode' parameter.
    The changes between threaded and process mode kernels should be transparent to your application.  Generally speaking, SAP recommends 'threaded' kernel mode - and specifically for SAP applications only certifies 'threaded' kernel mode.    For custom applications, you *could* use either - although, depending on how many engines you run and what chipset you are on, you might see better performance with one vs. the other - typically threaded kernel mode is better, although there are exceptions.
    Generally, the main difference is that in process kernel mode, each engine did disk and network IO polling.   Due to OS security restrictions, this often meant that a engine had to process the disk IO in which it submitted...or for networking, your SPID had to run on your network engine for any network IO.  In threaded mode, there is a single parent process with engine tasks (threads) and IO tasks (threads).   Consequently, for customers used to running in the 10's of engines, we suggest a starting point of reducing the number of engines by 2 to give the IO tasks CPU time.
    One reason why threaded mode is often better is due to OS scheduling.   With hardware threaded cores, most OS dispatch schedulers do a better job of spreading the threads across the cores before utilizing the threads when a process is multi-threaded with POSIX threads - then a multi-process/kernel threaded implementation.   At one customer, we proved that we consistently got the best performance with threaded kernel and the only way we could match it with process kernel was to use OS cpu affinity to bind the ASE engine processes to individual cores.
    However, one consideration is that older SPARC Niagara chips (T1-T4) were notoriously bad at network handling for some reason.   As a result, one of the recommendations for ASE on SPARC Niagara chips is to run the same number of network engines as the number of cores ASE is using.   One solution to that is in Solaris 11 (I think) where Solaris finally started being able to handle network interrupts better - I also think the T5/T6 are much better chips - but I have no customer experience data to go on there.

  • "Unexpected Kernel Mode Trap (Wdf01000.sys)" and a Blue Screen appearing frequently on my Windows 8.1 (64-bit) laptop and laptop restarting all of a sudden.

    Hi I am Arka Dey. I am using a
    Windows 8.1 64-bit single language Dell laptop. Recently I have installed an update to my Windows 8.1 (X-64) operating system from the "Windows Update" available in the "Control Panel" section of my laptop.
    But from that very day when I installed the updates, my laptop started behaving weird sometimes.
    The problem is while I am using my laptop, a
    blue screen suddenly appears and it says, " Your PC has run into a problem and needs to be restarted." Along with it there is
    written the following message: " You can later search for this online - Unexpected Kernel Mode Trap (Wdf01000.sys)".
    After displaying this for a few seconds in the blue screen mode, my
    laptop automatically restarts. This has been happening for sometime for the past few weeks. I do not understand the meaning of the message displayed in the blue screen and nor do I know the reason behind its occurrence. Please help me with
    a solution to this irritating problem as I am not a student of computer related sciences and software technologies. Neither am I that tech savvy. So please do help me with a guide or set of instructions to solve this problem of mine. The detailed specifications
    of my laptop are given as follows:-
    System Information
    OS Name Microsoft Windows 8.1 Single Language
    Version 6.3.9600 Build 9600
    Other OS Description Not Available
    OS Manufacturer Microsoft Corporation
    System Name DELL
    System Manufacturer Dell Inc.
    System Model Inspiron 5521
    System Type x64-based PC
    System SKU Inspiron 5521
    Processor Intel(R) Core(TM) i7-3537U CPU @ 2.00GHz, 2501 Mhz, 2 Core(s), 4 Logical Processor(s)
    BIOS Version/Date Dell Inc. A11, 29-08-2013
    SMBIOS Version 2.7
    Embedded Controller Version 1.01
    BIOS Mode UEFI
    BaseBoard Manufacturer Dell Inc.
    BaseBoard Model Not Available
    BaseBoard Name Base Board
    Platform Role Mobile
    Secure Boot State On
    PCR7 Configuration Binding Not Possible
    Windows Directory C:\WINDOWS
    System Directory C:\WINDOWS\system32
    Boot Device \Device\HarddiskVolume1
    Locale India
    Hardware Abstraction Layer Version = "6.3.9600.17031"
    User Name DELL\Arka Dey
    Time Zone India Standard Time
    Installed Physical Memory (RAM) 8.00 GB
    Total Physical Memory 7.88 GB
    Available Physical Memory 5.08 GB
    Total Virtual Memory 15.9 GB
    Available Virtual Memory 12.6 GB
    Page File Space 8.00 GB
    Page File C:\pagefile.sys
    Hyper-V - VM Monitor Mode Extensions Yes
    Hyper-V - Second Level Address Translation Extensions
    Yes
    Hyper-V - Virtualization Enabled in Firmware
    Yes
    Hyper-V - Data Execution Protection Yes
    N.B. : If you need more specifications about hardwares then I can send them to you in later messages. Please help me.

    Hi roberto-
    Yes, its a shame. I have also contacted lenovo support hoping that they can sort out this problem. However, first response from them was 'contact your internet service provider since internet connectivity goes down'! :-/ I am hoping I have been able to get through to them now at least about where the problem lies. I wonder if anyone has tried using the laptop with the same broadcom wireless adapter with some other version of OS (linux, windows 7 etc.) and whether they still face the same problem. I haven't tried that yet. If this is just an OS / driver issue I hope someone somewhere is working on a fix! If not, I guess the only other solution would be to get an external USB wifi adapter but that is not something one would want to do when you buy a brand new Lenovo laptop. This was a big let down for me.
    -sag

  • HT201210 I have an unknown error (1621) and my iPod is not being recognised in iTunes or the Finder, even in Disc mode.  Anyone know what's going on?

    I have an unknown error (1621) and my iPod is not being recognised in iTunes or the Finder, even in Disc mode.  Anyone know what's going on?

    Try and force iPod into Recovery Mode:
    1. Turn off iPad
    2. Connect USB cable to computer; leave the other end alone
    3. Press and hold the Home button down and connect the docking end of cable to iPad
    4. Continue holding the Home button until you see the "Connect To iTune" screen
    5. Release the Home button
    6. Open iTune
    7. You should see "iTunes has detected an iPad in recovery mode"
    8. Use iTune to restore iPod
    Note: You need to be patient and repeat the above many times to recover your iPad

  • Repeated Nvidia error on Vaio Z1 laptop: "Display driver NVIDIA Windows Kernel Mode Driver, Version 188.80 stopped responding and successfully recovered." Any thoughts?

    I keep having my screen go black and then Win 7 pro gives me this error:
    "Display driver NVIDIA Windows Kernel Mode Driver, Version 188.80 stopped responding and successfully recovered."
    everything is fine after that.
    happens 3 or 4 times a day.
    '''doesn't '''seem to be on graphics or flash heavy sites.
    driver is up to date and tried reloading driver.

    I keep having my screen go black and then Win 7 pro gives me this error:
    "Display driver NVIDIA Windows Kernel Mode Driver, Version 188.80 stopped responding and successfully recovered."
    everything is fine after that.
    happens 3 or 4 times a day.
    '''doesn't '''seem to be on graphics or flash heavy sites.
    driver is up to date and tried reloading driver.

  • Unexpected kernel mode error trap (Ndu.sys)

    I've been getting thus BSOD error "unexpected kernel mode trap (ndu.sys)" after
    installing visual studio 2013 when in connect to the internet and open the browser. If the browser is not opened then it runs just fine even if the internet is connected. 
    The worst situation even makes my PC crash 5 times in an hour. Almost crazy.
    I've read the related topic about upgrade my driver would solve the question. But I just
    clean reinstall Windows 8.1 two days ago. Before that I was still using Windows 8.1, VS2013, older driver and patch, and never got BSOD before. Why newer and cleaner environments cause PC so much trouble? I don't get it and come seek for help.
    Here is one of my BSOD dump file. Please check it.
    https://dl.dropboxusercontent.com/u/62254866/072614-11859-01.rar
    Thank you very much!

    I suggest you start by doing a system file check.  This one crash was Related to Ndu.sys Windows Network Data Usage Monitoring Driver from Microsoft Corporation
    Please run a system file check (SFC)
    All instructions are in our Wiki article below...
    Should you have any questions please ask us.
    System file check (SFC) Scan and Repair System Files
    Wanikiya and Dyami--Team Zigzag

  • AIX 5.1 (64-bit kernel mode) + JVM 1.3.1 (32-bit)?

    We need to run Oracle 9.2 and WebLogic 7.0 on the same box running AIX
    5.1. Since Oracle 9.2 is only available as a 64-bit app, we need to
    run AIX 5.1 in 64-bit kernel mode.
    IBM has released both a 32-bit and 64-bit JVM 1.3.1. Clearly, they
    will run in the respective kernel modes, however, has anyone tried
    running JVM 1.3.1 (32-bit) in AIX 5.1 (64-bit kernel mode)?? If yes,
    what version (java -version printout) of JVM 1.3.1 and WebLogic did
    you use?
    We need to use the 32-bit JVM because WebLogic 7.0 contains some
    32-bit libraries (e.g. Oracle JDriver).
    Would apprecite any stories regarding success/failure.

    I've tried and have not found a sucessful combination. I tried the JDK bundled
    with 6.1sp2 as well as 1.3.1.10 and 1.3.1.11
    sorry no help,
    James
    [email protected] (Len) wrote:
    We need to run Oracle 9.2 and WebLogic 7.0 on the same box running AIX
    5.1. Since Oracle 9.2 is only available as a 64-bit app, we need to
    run AIX 5.1 in 64-bit kernel mode.
    IBM has released both a 32-bit and 64-bit JVM 1.3.1. Clearly, they
    will run in the respective kernel modes, however, has anyone tried
    running JVM 1.3.1 (32-bit) in AIX 5.1 (64-bit kernel mode)?? If yes,
    what version (java -version printout) of JVM 1.3.1 and WebLogic did
    you use?
    We need to use the 32-bit JVM because WebLogic 7.0 contains some
    32-bit libraries (e.g. Oracle JDriver).
    Would apprecite any stories regarding success/failure.

  • Error message on Satellite A200: Can't open ACPI ATK0100 Kernel Mode Driver

    Hi,
    I have Satellite A200 laptop
    When i start the windows(vista) I get the following error: *"Can't open ACPI ATK0100 Kernel Mode Driver.* " !!
    I've installed all drivers and the error remains.
    I've installed all the drivers from the Toshiba website , but the issue remains.
    Device manager shows me that every device is working properly.
    Has anyone got an solution?
    Thanks

    ACPI is the power management facility for your Windows Operating system. If this is failing you may have to run a system recovery on your computer. You can do this with the hidden partition on your hard drive, however this will erase all of the data on your machine. If this doesn't solve the problem, you may have to consider getting your hard drive checked for bad sectors as this may have failed.
    Hope this helps. :)

  • Adobe premiere could not find any valid editing modes error

    Hi, I am installing adobe premiere 8 and the update patch and when I click New Project I get the error message Adobe premiere could not find any valid editing modes, please reinstall and start again.  I have reinstalled, installed patch, checked for the vidc.draw in registry and none of these have resolved.
    Have XP service pack 3, with valid HD space etc...  Any suggestions greatly appreciated.

    Hello, Kelzb,
    Premiere Elements has its own forum, which is here:
    http://forums.adobe.com/community/premiere/premiere_elements
    and you'll probably get better, faster replies to video questions there. Good luck!

  • Getting slice/volume size from kernel mode

    Hi, my driver needs to be able to get a slice/volume size in LBs.
    Until now, when I wanted to send IOCTLS in kernel mode I used the
    cdev_ioctl function.
    However I'v encountered some strange problems when using this
    function for disksuite devices. The DIOCINFO IOCTL works fine, however
    neither DKIOCGVTOC nor DKIOCGAPART worked. The rc is 0 but the buffers
    contained random garabage. Does anyone have any idea what's wrong?
    Further info:
    1.On scsi or veritas volume manager devices these IOCTLS works fine, only on
    devices controleld by the disksuite driver (md) am I encountering such problems.
    2.The OS is solaris 8.
    3.The IOCTLS work fine from user-mode for all devices types.
    4.I am using cdev_ioctl as follows:
    cdev_ioctl(hTargetDevice, /*The device dev_t*/
    ioctlCode, /*Ioctl code*/
    (intptr_t)pInputBuffer, /*The info structure*/
    FKIOCTL|FREAD, /*Kernel ioctl*/
    kcred, /*Root privileges*/
    &ioctlRval);
    Any help is appreciated.
    ERAN

    Hi, for other peoples information - I finally figured out the problem. It was actually a faulty RAM module which I had bought. I had upgraded from 2 to 4 gb of RAM using an approved type of RAM for my particular computer. Finally I removed one module of RAM (after doing nearly everything else under the sun including trying to reinstall the operating system and wipe the computer etc) and the computer worked fine.
    Dave

  • Windows 8.1 Nvidia Windows Kernel Mode Driver Driver stopped responding and recovered?

    I have the newst version of the 15" MBP Retina with the Haswell chip and Nvidia GT 750m.  The problem I started having about 1 week ago is intermittent it seems, but involves the graphics driver when I'm in windows.
    The screen goes flashes to black for about 5 seconds then recovers and the display comes back up.  It just continues to do this every 10-15 seconds and the error messages displayed is "Display driver stopped responding and has recovered"  below that it says Display driver Nvidia Windows Kernel Mode Driver Vers.####### stopped responding and has successfully recoverd.
    What's crazy is the problem is not limited to any particular version of the driver!  I used system restore and went back a few weeks just to make sure, thinking it was just a conflict with a new update somewhere.  I have tried to install old versions of the 64-bit Geforce driver and it is irrelevant, the problem keeps cropping back up. I dont' know what to do, and can't even function in the Windows side hardly at all for very long.
    Please help
    Thanks
    Robert

    Hi Robert, 
    I dont know if this will help you, but yesterday when I logged into Win 8.1 on the same rMBP as you I got an update notice for a new driver for the NVIDIA graphics card.  
    This is the driver that I got the notice for. http://www.nvidia.com/download/driverResults.aspx/73780/en-us
    You may want to download this and try installing it. 
    Good Luck

  • Unexpected kernel mode trap wdf01000.sys

      HI I been facing this issue last couple of days its becouse while browzing the interner and BSNl model U 100 which is based in India . I goin to give you the whocrased report below here. Crash Dump Analysis
    Crash dump directory: C:\WINDOWS\Minidump
    Crash dumps are enabled on your computer.
    On Sun 02-08-2015 03:41:17 GMT your computer crashed
    crash dump file: C:\WINDOWS\Minidump\080215-24031-01.dmp
    This was probably caused by the following module: wdf01000.sys (Wdf01000+0x316CA)
    Bugcheck code: 0x1000007F (0x8, 0xFFFFD00022764130, 0xFFFFD0002277FFE0, 0xFFFFF801B14C86CA)
    Error: UNEXPECTED_KERNEL_MODE_TRAP_M
    file path: C:\WINDOWS\system32\drivers\wdf01000.sys
    product: Microsoft® Windows® Operating System
    company: Microsoft Corporation
    description: Kernel Mode Driver Framework Runtime
    Bug check description: This indicates that a trap was generated by the Intel CPU and the kernel failed to catch this trap.
    This appears to be a typical software driver bug and is not likely to be caused by a hardware problem. This problem might be caused by a thermal issue.
    The crash took place in a standard Microsoft module. Your system configuration may be incorrect. Possibly this problem is caused by another driver on your system that cannot be identified at this time.
      System Information (local)
    computer name: VISAKH
    windows version: Windows 8.1 , 6.3, build: 9600
    windows dir: C:\WINDOWS
    Hardware: HP 15 Notebook PC, Hewlett-Packard, 2212
    CPU: GenuineIntel Intel(R) Core(TM) i7-4510U CPU @ 2.00GHz Intel586, level: 6
    4 logical processors, active mask: 15
    RAM: 6370975744 total
      Please help me to resolve this problem. Regards Visakh 

      HI I been facing this issue last couple of days its becouse while browzing the interner and BSNl model U 100 which is based in India . I goin to give you the whocrased report below here. Crash Dump Analysis
    Crash dump directory: C:\WINDOWS\Minidump
    Crash dumps are enabled on your computer.
    On Sun 02-08-2015 03:41:17 GMT your computer crashed
    crash dump file: C:\WINDOWS\Minidump\080215-24031-01.dmp
    This was probably caused by the following module: wdf01000.sys (Wdf01000+0x316CA)
    Bugcheck code: 0x1000007F (0x8, 0xFFFFD00022764130, 0xFFFFD0002277FFE0, 0xFFFFF801B14C86CA)
    Error: UNEXPECTED_KERNEL_MODE_TRAP_M
    file path: C:\WINDOWS\system32\drivers\wdf01000.sys
    product: Microsoft® Windows® Operating System
    company: Microsoft Corporation
    description: Kernel Mode Driver Framework Runtime
    Bug check description: This indicates that a trap was generated by the Intel CPU and the kernel failed to catch this trap.
    This appears to be a typical software driver bug and is not likely to be caused by a hardware problem. This problem might be caused by a thermal issue.
    The crash took place in a standard Microsoft module. Your system configuration may be incorrect. Possibly this problem is caused by another driver on your system that cannot be identified at this time.
      System Information (local)
    computer name: VISAKH
    windows version: Windows 8.1 , 6.3, build: 9600
    windows dir: C:\WINDOWS
    Hardware: HP 15 Notebook PC, Hewlett-Packard, 2212
    CPU: GenuineIntel Intel(R) Core(TM) i7-4510U CPU @ 2.00GHz Intel586, level: 6
    4 logical processors, active mask: 15
    RAM: 6370975744 total
      Please help me to resolve this problem. Regards Visakh 

  • BerkeleyDB in FreeBSD kernel mode

    Hello,
    I would like to know if there have been any efforts to get BerkeleyDB working in FreeBSD kernel mode? We have a requirement
    to perform concurrent writes to BerkeleyDB from kernel mode and reads from user space applications. Also, we do not support
    exceptions in our kernel space. This may rule out the BDB C++ interface, which is okay for us. Alternatively, we would need
    the Db/DbEnv constructors not throw exceptions and use a status constructor argument to convey if the object construction fails.
    Disabling exceptions in rest of BDB calls can be done using the constructor argument 'DB_CXX_NO_EXCEPTIONS'.
    Any leads to getting BerkeleyDB working in the FreeBSD kernel space is appreciated.
    with best regards,
    dhruva

    from
    http://docs.sun.com/app/docs/doc/817-5789/6ml7kh1b4?q=amd64&a=view
    Compiling with Sun Studio
    Use the -D_KERNEL option to indicate that this code defines a kernel module.
    If you are compiling for a 64-bit x86 architecture, use both the -xarch=amd64 option and the -xmodel=kernel option:
    % cc -D_KERNEL -xarch=amd64 -xmodel=kernel -c mydriver.c
    % ld -r -o mydriver mydriver.o
    tim

Maybe you are looking for