Powershell Function Scoping Issue

Hopefully this is a simple question for the pros out there. Consider a script like this:
function Do-Something {
Helper1
function Helper1 {
# some stuff
I then dot-source this script in a psm1 file which is imported into my local session. The module only exports Do-Something as I would like Helper1 to be private. However, when I run Do-Something then Helper1 is not found. How can I create a helper that is
not exported to the global scope but is still available to the exported function? Should I just put Helper1 inside Do-Something or is there a better way?
Thanks!

OK.  So you have a .PSM1 file that you're loading with Import-Module, and that PSM1 file dot-sources some number of other PS1 files?  That should be working fine; I use that same technique in many modules.  Here's an example of that on my
computer:
#### test.psm1:
function Do-Something {
Helper1
. $PSScriptRoot\Helper.ps1
Export-ModuleMember -Function Do-Something
#### Helper.ps1:
function Helper1
Write-Host 'I am the helper'
#### At the console:
PS C:\source\Temp> Import-Module .\test.psm1
WARNING: The names of some imported commands from the module 'test' include unapproved verbs that might make them less discoverable. To find the commands with unapproved
verbs, run the Import-Module command again with the Verbose parameter. For a list of approved verbs, type Get-Verb.
PS C:\source\Temp> Get-Command -Module Test
CommandType Name ModuleName
Function Do-Something test
PS C:\source\Temp> Do-Something
I am the helper
PS C:\source\Temp>

Similar Messages

  • Array / Function Scoping issue

    Hi All,
    Can someone confirm this please?
    If I declare an array in a function, is that array only available / accessible in the scope of that function?  That is, does it have a local scope to the function only?
    I ask because I am unable to access values in the array outside of the defining function.
    As an example:
    function myFunction () {
         //other code e.g. specifying length of array, etc
    for (i=0; i<myArray.length; i++) {
         myArray[i] = currentValue + i;
         //other code
    trace (myArray); // undefined is showing up here.
    Do I have to do something like this inside the function to make the values available to the root and other functions?
    _root.myArrayGlobal = myArray; // inside the function
    trace (myArrayGlobal); //this then appears to work outside of the function
    I just want to confirm to ensure the only issue I'm having is a scoping one.
    If so is this the “best practice” way to do it?
    Thank you
    Best Regards
    Chris

    Yes, declaring a variable within a function give it scope only within that function. To remedy your problem just declare it outside the function, not inside (and since you don't show actually declaring it, just in case, always declare using "var").
    var myArray = new Array();
    function myFunction () {
         //other code e.g. specifying length of array, etc
    for (i=0; i<myArray.length; i++) {
         myArray[i] = currentValue + i;
         //other code
    trace (myArray); // undefined is showing up here.

  • Pl-Sql Oracle Function Concurrency Issue

    Hi All,
    Issue - pl-sql Oracle Function performance issue, when muliple users are accessing the function
    Detail -
    Oracle 11g / Linux Server
    I have developed a pl-sql oracle function to retrieve information from 3 tables, output as a particluar type array.
    Single request is getting processed within 2.2 seconds, but when multiple request are sent concurrently <tested with 50>, time taken for each output is different.
    BreakUp of Response times:-
    8 messages took - 2.2 sec
    +8 messages took - 4.4 sec
    ++8 messages took - 6.6 sec....etc
    I'm looking for any DB tunning parameter, which will help to resolve this issue.
    My only aim is to expose developed function to multiple users, who all can access it concurrently, but response should limit within 2.2 seconds.
    Any thoughts + guidance is higly appreciated.
    Thanks
    Preetam Singh

    Supporting data insert statements:
    =======================================================================================================================
    REM INSERTING into EXPERTISE
    Insert into EXPERTISE (USH_USER_NAME,USH_SKILL_SET1,USH_SKILL_SET2,USH_SKILL_SET3,USH_SKILL_SET4,USH_SKILL_SET5,USH_SKILL_SET6,USH_SKILL_SET7,USH_SKILL_SET8,USH_SKILL_SET9,USH_SKILL_SET10,USH_SKILL_SET11,USH_SKILL_SET12,USH_SKILL_SET13,USH_SKILL_SET14,USH_SKILL_SET15,USH_SKILL_SET16,USH_SKILL_SET17,USH_SKILL_SET18,USH_SKILL_SET19,USH_SKILL_SET20) values ('A','ENGLISH','FRENCH','HINDI',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null);
    Insert into EXPERTISE (USH_USER_NAME,USH_SKILL_SET1,USH_SKILL_SET2,USH_SKILL_SET3,USH_SKILL_SET4,USH_SKILL_SET5,USH_SKILL_SET6,USH_SKILL_SET7,USH_SKILL_SET8,USH_SKILL_SET9,USH_SKILL_SET10,USH_SKILL_SET11,USH_SKILL_SET12,USH_SKILL_SET13,USH_SKILL_SET14,USH_SKILL_SET15,USH_SKILL_SET16,USH_SKILL_SET17,USH_SKILL_SET18,USH_SKILL_SET19,USH_SKILL_SET20) values ('B',null,'GERMAN','CHINIESE','HINDI',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null);
    Insert into EXPERTISE (USH_USER_NAME,USH_SKILL_SET1,USH_SKILL_SET2,USH_SKILL_SET3,USH_SKILL_SET4,USH_SKILL_SET5,USH_SKILL_SET6,USH_SKILL_SET7,USH_SKILL_SET8,USH_SKILL_SET9,USH_SKILL_SET10,USH_SKILL_SET11,USH_SKILL_SET12,USH_SKILL_SET13,USH_SKILL_SET14,USH_SKILL_SET15,USH_SKILL_SET16,USH_SKILL_SET17,USH_SKILL_SET18,USH_SKILL_SET19,USH_SKILL_SET20) values ('C','ENGLISH',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null);
    =======================================================================================================================
    ==================================================================
    REM INSERTING into WORKING
    Insert into WORKING (NAME,WEEKDAY,DAYSTARTTIME,DAYENDTIME) values ('A','MON','09:00','18:00');
    Insert into WORKING (NAME,WEEKDAY,DAYSTARTTIME,DAYENDTIME) values ('A','TUE','09:00','18:00');
    Insert into WORKING (NAME,WEEKDAY,DAYSTARTTIME,DAYENDTIME) values ('A','WED',null,null);
    Insert into WORKING (NAME,WEEKDAY,DAYSTARTTIME,DAYENDTIME) values ('A','THU','09:00','18:00');
    Insert into WORKING (NAME,WEEKDAY,DAYSTARTTIME,DAYENDTIME) values ('A','FRI','09:00','12:00');
    Insert into WORKING (NAME,WEEKDAY,DAYSTARTTIME,DAYENDTIME) values ('B','MON','09:00','18:00');
    Insert into WORKING (NAME,WEEKDAY,DAYSTARTTIME,DAYENDTIME) values ('B','TUE','09:00','18:00');
    Insert into WORKING (NAME,WEEKDAY,DAYSTARTTIME,DAYENDTIME) values ('B','WED','09:00','18:00');
    Insert into WORKING (NAME,WEEKDAY,DAYSTARTTIME,DAYENDTIME) values ('B','THU','09:00','18:00');
    Insert into WORKING (NAME,WEEKDAY,DAYSTARTTIME,DAYENDTIME) values ('B','FRI','09:00','18:00');
    Insert into WORKING (NAME,WEEKDAY,DAYSTARTTIME,DAYENDTIME) values ('C','MON',null,null);
    Insert into WORKING (NAME,WEEKDAY,DAYSTARTTIME,DAYENDTIME) values ('C','TUE','09:00','18:00');
    Insert into WORKING (NAME,WEEKDAY,DAYSTARTTIME,DAYENDTIME) values ('C','WED','09:00','18:00');
    Insert into WORKING (NAME,WEEKDAY,DAYSTARTTIME,DAYENDTIME) values ('C','THU','09:00','18:00');
    Insert into WORKING (NAME,WEEKDAY,DAYSTARTTIME,DAYENDTIME) values ('C','FRI','09:00','12:00');
    ==================================================================
    =====================================================================================================================
    REM INSERTING into SCHEDULE
    Insert into SCHEDULE (APPOINTMENTDATE,APPOINTMENTSTART,APPOINTMENTEND,STATUS,NAME) values (to_timestamp('11-FEB-12 10.00.00.000000000 AM','DD-MON-RR HH.MI.SS.FF AM'),to_timestamp('11-FEB-12 10.00.00.000000000 AM','DD-MON-RR HH.MI.SS.FF AM'),to_timestamp('11-FEB-12 11.00.00.000000000 AM','DD-MON-RR HH.MI.SS.FF AM'),'MEETING','A');
    Insert into SCHEDULE (APPOINTMENTDATE,APPOINTMENTSTART,APPOINTMENTEND,STATUS,NAME) values (to_timestamp('11-FEB-12 10.00.00.000000000 AM','DD-MON-RR HH.MI.SS.FF AM'),to_timestamp('11-FEB-12 10.00.00.000000000 AM','DD-MON-RR HH.MI.SS.FF AM'),to_timestamp('11-FEB-12 11.00.00.000000000 AM','DD-MON-RR HH.MI.SS.FF AM'),'TRAINING','B');
    Insert into SCHEDULE (APPOINTMENTDATE,APPOINTMENTSTART,APPOINTMENTEND,STATUS,NAME) values (to_timestamp('13-FEB-12 10.00.00.000000000 AM','DD-MON-RR HH.MI.SS.FF AM'),to_timestamp('11-FEB-12 10.00.00.000000000 AM','DD-MON-RR HH.MI.SS.FF AM'),to_timestamp('11-FEB-12 11.00.00.000000000 AM','DD-MON-RR HH.MI.SS.FF AM'),'MEETING','A');
    Insert into SCHEDULE (APPOINTMENTDATE,APPOINTMENTSTART,APPOINTMENTEND,STATUS,NAME) values (to_timestamp('11-FEB-12 10.00.00.000000000 AM','DD-MON-RR HH.MI.SS.FF AM'),to_timestamp('11-FEB-12 11.00.00.000000000 AM','DD-MON-RR HH.MI.SS.FF AM'),to_timestamp('11-FEB-12 11.30.00.000000000 AM','DD-MON-RR HH.MI.SS.FF AM'),'MEETING','B');
    =====================================================================================================================
    Edited by: 910614 on Feb 10, 2012 9:29 AM

  • Return powershell Function variable back to VBScript

    Hey Scripting Guy,
    I have a vbscript function that I use to call a Powershell Function. I need to return the powershell output back to the calling vbscript. I've tried different methods but I can only get return codes (either 1 or 0) back to the calling vbscript function and
    not the string value itself.
    Here is the code:
    vbscript-
    Function GetDomain(ByVal username As String) As String
    Dim strCmd, ReturnDomain As String
    Dim objshell
    strCmd = "C:\WINDOWS\system32\WindowsPowerShell\v1.0\powershell.exe -noexit -file c:\temp\Get-Infosec2.ps1" & "'" & username & "'"
    Set objshell = CreateObject("Wscript.shell")
    ReturnDomain = objshell.Run(strCmd)
    GetDomain = ReturnDomain
    Set objshell = Nothing
    End Function
    Powershell -
    Function
    Get-Infosec2{
    [cmdletbinding()]
    Param(
    [parameter()]
    [string]$name
    # Add the Quest ActiveRoles snapin for easier AD management; but first check if it's already loaded.
    $SnapIn
    =
    "Quest.ActiveRoles.ADManagement"
    If
    (Get-PSSnapin
    $SnapIn
    -ea
    "silentlycontinue") {
    write-Host
    "Quest ActiveRoles plugin already loaded. Continuing ..."
    elseIf (get-PSSnapin
    $SnapIn
    -registered
    -ea
    "silentlycontinue") {
    write-Warning
    "Quest ActiveRoles plugin registered but not loaded. Loading."
    Add-PSSnapin
    $SnapIn
    else {
    write-Host
    "PS Snapin
    $SnapInnot found."
    -foregroundcolor
    Red
    Write-host
    $ldapFilter
    $domainname
    =
    Get-QADUser
    -Identity
    $name
    -Properties
    dn   
    -SizeLimit

    |
    select-object
    dn
    $newstring
    =
    $domainname
    -split ("DC")
    $newstring1
    =
    $newstring[0]
    $newstring2
    =
    $newstring[1]
    $domainname
    =
    $newstring2.Substring(0,$newstring2.Length-1)
    $domainname
    =
    $domainname.Substring(1)
    $domainname
     The result that I am trying to achieve is getting the value of $domainname back to the calling vbscript function.
    Any Idea what I am doing wrong?

    Why don't you just use VB to get the domain.  You can get it directly.  No need for PowerShell.
    This is a scripting forum and you are codeing in VB not VBScript. You need to post your questions in the VB developers forum.
    In VB.Net you can just use the CurrentDomian static method of the DirectoryServices class.
    ¯\_(ツ)_/¯

  • Powershell and Outlook Issues

    So my ultimate goal is to export emails after a specific length of time as a .msg and then upload them to sharepoint for archival purposes.
    My issue is all the examples I find never seem to work for me. I use PowerGUI for my ISE, I have powershell 2.0 and Outlook 2007 SP3
    So for example, when I try something very simple according to the scripting guy
    Reference, I try this line of code:
    [Reflection.Assembly]::LoadWithPartialname("Microsoft.Office.Interop.Outlook") | out-null
    [enum]::GetNames("Microsoft.Office.Interop.Outlook.OlDefaultFolders")
    This should list the enums used to point to the different folders in outlook....here are some of them:
    olFolderDeletedItems
    olFolderOutbox
    olFolderSentMail
    olFolderInbox
    olFolderCalendar
    olFolderContacts
    olFolderJournal
    When I run it, either PowerGUI or straight in the console I receive the following error:
    Cannot convert argument "0", with value: "Microsoft.Office.Interop.Outlook.OlDefaultFolders", for "GetNames" to type "System.Type": "Cannot convert the "Microsoft.
    Office.Interop.Outlook.OlDefaultFolders" value of type "System.String" to type "System.Type"."
    At C:\Users\clayman\AppData\Local\Temp\ceb3eca9-5cf1-4dd2-92aa-c2c29d3ca438.ps1:2 char:17
    + [Enum]::GetNames <<<< ("Microsoft.Office.Interop.Outlook.OlDefaultFolders")
    + CategoryInfo : NotSpecified: (:) [], MethodException
    + FullyQualifiedErrorId : MethodArgumentConversionInvalidCastArgument
    Truth be told, no matter what sample I try they all fail, for instance try and run this function (yet another scripting guy article)
    Function Get-OutlookInBox
    Add-type -assembly "Microsoft.Office.Interop.Outlook" | out-null
    $olFolders = "Microsoft.Office.Interop.Outlook.olDefaultFolders" -as [type]
    $outlook = new-object -comobject outlook.application
    $namespace = $outlook.GetNameSpace("MAPI")
    $folder = $namespace.getDefaultFolder($olFolders::olFolderInBox)
    $folder.items |
    Select-Object -Property Subject, ReceivedTime, Importance, SenderName
    And this one fails with:
    Add-Type : Could not load file or assembly 'Microsoft.Office.Interop.Outlook, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dep
    endencies. The system cannot find the file specified.
    At C:\Users\clayman\AppData\Local\Temp\51f81593-6a0f-4261-9888-5499432508e7.ps1:3 char:10
    + Add-Type <<<< -AssemblyName "Microsoft.Office.Interop.Outlook" | Out-Null
    + CategoryInfo : NotSpecified: (:) [Add-Type], FileNotFoundException
    + FullyQualifiedErrorId : System.IO.FileNotFoundException,Microsoft.PowerShell.Commands.AddTypeCommand
    Exception calling "GetDefaultFolder" with "1" argument(s): "Value does not fall within the expected range."
    At C:\Users\clayman\AppData\Local\Temp\51f81593-6a0f-4261-9888-5499432508e7.ps1:8 char:39
    + $folder = $nameSpace.getDefaultFolder <<<< ($olFolders)
    + CategoryInfo : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : ComMethodTargetInvocation
    If I change:
    Add-Type -AssemblyName "Microsoft.Office.Interop.Outlook" | Out-Null
    To:
    [Reflection.Assembly]::LoadWithPartialName("Microsoft.Office.Interop.Outlook") | Out-Null
    The first error goes away, but the second one remains. What the heck am I doing wrong?
    If you find that my post has answered your question, please mark it as the answer. If you find my post to be helpful in anyway, please click vote as helpful.
    Don't Retire Technet

    Hi,
    How about change
    $folder = $namespace.getDefaultFolder($olFolders::olFolderInBox)
    to
    $folder = $namespace.getDefaultFolder($olFolders.olFolderInBox)
    Please test it.
    Regards,
    Yan Li
    TechNet Subscriber Support
    If you are
    TechNet Subscription
    user and have any feedback on our support quality, please send your feedback
    here.
    Cataleya Li
    TechNet Community Support

  • Powershell Array Export Issues

    Hey everyone! So I might just be going about this the wrong way but here's my issue. The script functions as I need it to however, when I export the values to my .csv, the columns are in the wrong order than the way I think they should be. Here's what I've
    got:
    $list = Get-content targets.txt
    Foreach($_ in $list) {
    $SAM = Get-RegValue -ComputerName $_ -Key Software\Microsoft\Windows\CurrentVersion\Authentication\LogonUI -Value LastLoggedOnSAMUser
    $User = Get-RegValue -ComputerName $_ -Key Software\Microsoft\Windows\CurrentVersion\Authentication\LogonUI -Value LastLoggedOnUser
    @('Name','LastUserAccessed','LastUserLoggedOn')
    New-Object PSObject -Property @{
    Name = ($SAM).ComputerName
    LastUserAccessed = ($User).Data
    LastUserLoggedOn = ($SAM).Data
    } | Export-csv Results.csv -notypeinformation -append}
    I would like it to read Name, LastUserAccessed, and LastUserLoggedOn but it comes out to be LastUserAccessed, Name, LastUserLoggedOn. Any ideas as to why this is happening? Thanks in advance!

    Okay, then instead of using 'New-Object PsObject -Property', use [pscustomobject].
    http://blogs.interfacett.com/powershell-v3-object-creation-accelerator
    EDIT: Or you can just use [ordered] if you'd prefer:
    http://stackoverflow.com/questions/7802406/use-cases-of-ordered-the-new-powershell-3-0-feature
    Don't retire TechNet! -
    (Don't give up yet - 13,085+ strong and growing)

  • Passing parameter values to powershell function from batch file

    Hello ,
       I haven't used powershell for a while and getting back to using it. I have a function and I want to figure out how to pass the parameter values to the function through batch file.
    function Check-FileExists($datafile)
    write-host "InputFileName : $datafile"
    $datafileExists = Test-Path $datafile
    if ($datafileExists)
    return 0
    else
    return -100
    <#
    $datafile = "C:\Dev\eMetric\PreIDWork\PreIDFiles\SampleInputFile_011.txt"
    $returncode = Check-FileExists -datafile $datafile
    Write-Host "ReturnCode : $returncode"
    $datafile = "C:\Dev\eMetric\PreIDWork\PreIDFiles\SampleInputFile_01.txt"
    $returncode = Check-FileExists -datafile $datafile
    Write-Host "ReturnCode : $returncode"
    #>
    The above code seems to be work when I call it. But when I try to call that script and try to pass the parameter values, I am doing something wrong but can't figure out what.
    powershell.exe -command " &{"C:\Dev\eMetric\PreIDWork\PowerShell\BulkLoad_Functions.ps1" $returncode = Check-FileExists -datafile "C:\Dev\eMetric\PreIDWork\PreIDFiles\SampleInputFile_01.txt"}"
    Write-Host "ReturnCode : $returncode"
    $file = "C:\Dev\eMetric\PreIDWork\PreIDFiles\SampleInputFile_01.txt"
    powershell.exe -file "C:\Dev\eMetric\PreIDWork\PowerShell\BulkLoad_Functions.ps1" $returncode = Check-FileExists -datafile $datafile
    Somehow the I can't get the datafile parameter value being passed to the function. Your help would be much appreciated.
    I90Runner

    I am not sure about calling a function in a script like how you want to. Also I see you are setting the values of the parameters, this is not needed unless you want default values if nothing is passed. The values for the parameters will be passed via the
    batch file. So for me the easiest way is as indicated.
    param
    [string]$DataFile
    function Check-FileExists($datafile)
    write-host "InputFileName : $datafile"
    $datafileExists = Test-Path $datafile
    if ($datafileExists)
    return 0
    else
    return -100
    Write-Host "Return Code: $(Check-FileExists $DataFile)"
    Then you create a batch file that has
    start powershell.exe
    -ExecutionPolicy
    RemoteSigned -Command
    "& {<PathToScript>\MyScript.ps1 -DataFile 'C:\Dev\eMetric\PreIDWork\PreIDFiles\SampleInputFile.txt'}"
    Double click the batch file, and it should open a powershell console, load your script and pass it the path specified, which then the script runs it and gives you your output
    If you find that my post has answered your question, please mark it as the answer. If you find my post to be helpful in anyway, please click vote as helpful.
    Don't Retire Technet

  • Assigning a variant string to a function pointer issue?

    Hello,
    This is a little complex for me to describe, so I will try my best to explain !
    I don't know if this is doable in C?
    Basically, I need a function pointer to hold the name of a function coming form a character array!
    From the examples I have seen, it seems that what I am trying to do is not the conventional way of doing function pointers, but I don't see any other way of doing what I need to do.
    In one instance, the function pointer in my code, will require to be assigned a function name like this:
    _g_BlkFuncs_ =_BUF_FUNC_PTR_ParseBlockStatus;
    and at other instances, the same function pointer needs to be assigned to a function called:
    _g_BlkFuncs_ =_INV_FUNC_PTR_ParseBlockStatus;
    and at other instances:
    _g_BlkFuncs_ =_AND_FUNC_PTR_ParseBlockStatus;
    or
    _g_BlkFuncs_ =_OR_FUNC_PTR_ParseBlockStatus;
    etc....
    The only time I will know which function to assign is when I will retrieve the first part of the function name from a table called
    _x_UserPrgBlock_. The first part being the name differentiator such as "_BUF_", "_INV_", "_AND_", "_OR_" and so forth which
    is initially stored in the one of the table members called m_LogicElement_ residing in the _x_UserPrgBlock_ table or struct.
    In the example below, I made it simple by hard coding the assigning of the m_LogicElement_ member as "_BUF_" (see the line commented as "Manual assignment line" below). In reality the  m_LogicElement_ member is assigned from
    a user defined string which will vary from time to time. 
    Here is the sample snippet which shows the issue.
    ================================STRUCT.h
    #ifndef STRUCT_H
    #define STRUCT_H
    typedef struct USR_PRG_CNV{ // User program converter table
    char m_LogicElement_[2][knst_BUF_LOGIC_ELEM]; // Name of the logic block
    } User_Prg_Block;
    #endif
    =================================_BUF.h
    #ifndef BUF_H
    #define BUF_H
    void _BUF_FUNC_PTR_ParseBlockStatus(void);
    #endif
    ================================_BUF.c
    void _BUF_FUNC_PTR_ParseBlockStatus(void){
    int i = 0;
    i = 10;
    ===============================UPC.h
    #ifndef UPC_H
    #define UPC_H
    void AssignmentFunc();
    #endif
    ===============================UPC.c
    User_Prg_Block _x_UserPrgBlock_[2];
    void AssignmentFunc(){
    strcpy(_x_UserPrgBlock_[0].m_LogicElement_, "_BUF_"); // Manual assignment line
    ===============================DFP.c
    #include "_BUF.h"
    void (*_g_BlkFuncs_) (void);
    char volatile _g_FuncPtrStrVariant_[35];
    void SomeFunction(){
    strcpy(_g_FuncPtrStrVariant_, _x_UserPrgBlock_[0].m_LogicElement_); // Get "_BUF_"
    strcat(_g_FuncPtrStrVariant_, "FUNC_PTR_ParseBlockStatus"); // Complete the function name
    // Now try to assign the full function name to the function pointer
    //_g_BlkFuncs_ = _BUF_FUNC_PTR_ParseBlockStatus;
    //_g_BlkFuncs_ = &_g_FuncPtrStrVariant_;
    _g_BlkFuncs_ = _g_FuncPtrStrVariant_; // ???
    ==============================Main.c
    void main(){
    AssignmentFunc();
    SomeFunction();
    In reference to the following line listed above:
    _g_BlkFuncs_ = _g_FuncPtrStrVariant_;
    I do realize that conventionally, it should be:
    _g_BlkFuncs_ =_BUF_FUNC_PTR_ParseBlockStatus;
    The problem I find myself faced with is that the function that "_g_BlkFuncs_" points to, has to vary in accordance to the name of the function stored in the _g_FuncPtrStrVariant_ character array! The reason is that the _g_FuncPtrStrVariant_
    array is actually built up to the name of the function based on the current contents of m_LogicElement_ residing in the _x_UserPrgBlock_ table.
    I think!!!!! that even if I use an array of function pointers, it won't solve the issue.
    In summary, in C, is there a way to assign a name of a function built from a character array to a function pointer?
    All help sincerely appreciated!
    Thanks

    I am interpreting your question a little different than Brian.
    If I understand you correctly you are asking:  "Given the name of a function as a string, how do I get a pointer to that function".
    The unfortunately fact is that C++ does not support reflection, so getting a function by name is not possible.  By the time the linker has done its thing, the function name has been stripped from code.
    This means if you need to support string lookup of a function name you need to support an alternate mechanism to handle this.  If you were using C++, a map would be an ideal mechanism.  C can still do this, but the mechanism is a lot uglier
    due to the lack of data structures like std::string and std::map.

  • [Solved] Asus Zenbook Prime (UX31A-DB51) Function key issues

    I recently purchased this machine, and the final issue I have with is that the Function keys are not working. Looking at the wiki I saw that it should work out of the box with 3.4.4-2, and I'm on 3.4.5-1 and have issues with it. Following the instructions on building a patched module led to kernel panics.
    Thanks in advance for any help
    EDIT: dmesg output
    [ 0.000000] Initializing cgroup subsys cpuset
    [ 0.000000] Initializing cgroup subsys cpu
    [ 0.000000] Linux version 3.4.5-1-ARCH (tobias@T-POWA-LX) (gcc version 4.7.1 (GCC) ) #1 SMP PREEMPT Mon Jul 16 21:35:54 CEST 2012
    [ 0.000000] Command line: BOOT_IMAGE=/vmlinuz-linux root=/dev/mapper/vols-vroot ro cryptdevice=/dev/sda3:encdev:allow-discards quiet add_efi_memmap elevator=noop
    [ 0.000000] BIOS-provided physical RAM map:
    [ 0.000000] BIOS-e820: 0000000000000000 - 000000000009f000 (usable)
    [ 0.000000] BIOS-e820: 000000000009f000 - 00000000000a0000 (reserved)
    [ 0.000000] BIOS-e820: 0000000000100000 - 0000000020000000 (usable)
    [ 0.000000] BIOS-e820: 0000000020000000 - 0000000020200000 (reserved)
    [ 0.000000] BIOS-e820: 0000000020200000 - 0000000040004000 (usable)
    [ 0.000000] BIOS-e820: 0000000040004000 - 0000000040005000 (reserved)
    [ 0.000000] BIOS-e820: 0000000040005000 - 00000000d97e5000 (usable)
    [ 0.000000] BIOS-e820: 00000000d97e5000 - 00000000d9de6000 (ACPI NVS)
    [ 0.000000] BIOS-e820: 00000000d9de6000 - 00000000d9de9000 (reserved)
    [ 0.000000] BIOS-e820: 00000000d9de9000 - 00000000d9dfe000 (usable)
    [ 0.000000] BIOS-e820: 00000000d9dfe000 - 00000000d9e04000 (reserved)
    [ 0.000000] BIOS-e820: 00000000d9e04000 - 00000000d9e06000 (usable)
    [ 0.000000] BIOS-e820: 00000000d9e06000 - 00000000d9e0b000 (reserved)
    [ 0.000000] BIOS-e820: 00000000d9e0b000 - 00000000d9f64000 (usable)
    [ 0.000000] BIOS-e820: 00000000d9f64000 - 00000000d9f68000 (reserved)
    [ 0.000000] BIOS-e820: 00000000d9f68000 - 00000000d9fa7000 (usable)
    [ 0.000000] BIOS-e820: 00000000d9fa7000 - 00000000d9fae000 (reserved)
    [ 0.000000] BIOS-e820: 00000000d9fae000 - 00000000d9fb0000 (usable)
    [ 0.000000] BIOS-e820: 00000000d9fb0000 - 00000000d9fce000 (reserved)
    [ 0.000000] BIOS-e820: 00000000d9fce000 - 00000000d9fd1000 (usable)
    [ 0.000000] BIOS-e820: 00000000d9fd1000 - 00000000d9fd3000 (reserved)
    [ 0.000000] BIOS-e820: 00000000d9fd3000 - 00000000d9fea000 (usable)
    [ 0.000000] BIOS-e820: 00000000d9fea000 - 00000000d9ff0000 (reserved)
    [ 0.000000] BIOS-e820: 00000000d9ff0000 - 00000000d9ff8000 (usable)
    [ 0.000000] BIOS-e820: 00000000d9ff8000 - 00000000d9ff9000 (reserved)
    [ 0.000000] BIOS-e820: 00000000d9ff9000 - 00000000da008000 (usable)
    [ 0.000000] BIOS-e820: 00000000da008000 - 00000000da009000 (reserved)
    [ 0.000000] BIOS-e820: 00000000da009000 - 00000000da014000 (usable)
    [ 0.000000] BIOS-e820: 00000000da014000 - 00000000da019000 (reserved)
    [ 0.000000] BIOS-e820: 00000000da019000 - 00000000da037000 (usable)
    [ 0.000000] BIOS-e820: 00000000da037000 - 00000000da039000 (reserved)
    [ 0.000000] BIOS-e820: 00000000da039000 - 00000000da04d000 (usable)
    [ 0.000000] BIOS-e820: 00000000da04d000 - 00000000da04e000 (reserved)
    [ 0.000000] BIOS-e820: 00000000da04e000 - 00000000da060000 (usable)
    [ 0.000000] BIOS-e820: 00000000da060000 - 00000000da086000 (reserved)
    [ 0.000000] BIOS-e820: 00000000da086000 - 00000000da09a000 (usable)
    [ 0.000000] BIOS-e820: 00000000da09a000 - 00000000da09b000 (reserved)
    [ 0.000000] BIOS-e820: 00000000da09b000 - 00000000da09c000 (usable)
    [ 0.000000] BIOS-e820: 00000000da09c000 - 00000000da09e000 (reserved)
    [ 0.000000] BIOS-e820: 00000000da09e000 - 00000000da09f000 (usable)
    [ 0.000000] BIOS-e820: 00000000da09f000 - 00000000da0a4000 (reserved)
    [ 0.000000] BIOS-e820: 00000000da0a4000 - 00000000da0b9000 (usable)
    [ 0.000000] BIOS-e820: 00000000da0b9000 - 00000000da65d000 (reserved)
    [ 0.000000] BIOS-e820: 00000000da65d000 - 00000000da8dd000 (ACPI NVS)
    [ 0.000000] BIOS-e820: 00000000da8dd000 - 00000000da8e2000 (ACPI data)
    [ 0.000000] BIOS-e820: 00000000da8e2000 - 00000000da8e3000 (usable)
    [ 0.000000] BIOS-e820: 00000000da8e3000 - 00000000da926000 (ACPI NVS)
    [ 0.000000] BIOS-e820: 00000000da926000 - 00000000dad35000 (usable)
    [ 0.000000] BIOS-e820: 00000000dad35000 - 00000000daff4000 (reserved)
    [ 0.000000] BIOS-e820: 00000000daff4000 - 00000000db000000 (usable)
    [ 0.000000] BIOS-e820: 00000000dbc00000 - 00000000dfe00000 (reserved)
    [ 0.000000] BIOS-e820: 00000000f8000000 - 00000000fc000000 (reserved)
    [ 0.000000] BIOS-e820: 00000000fec00000 - 00000000fec01000 (reserved)
    [ 0.000000] BIOS-e820: 00000000fed00000 - 00000000fed04000 (reserved)
    [ 0.000000] BIOS-e820: 00000000fed1c000 - 00000000fed20000 (reserved)
    [ 0.000000] BIOS-e820: 00000000fee00000 - 00000000fee01000 (reserved)
    [ 0.000000] BIOS-e820: 00000000ff000000 - 0000000100000000 (reserved)
    [ 0.000000] BIOS-e820: 0000000100000000 - 000000011f200000 (usable)
    [ 0.000000] NX (Execute Disable) protection: active
    [ 0.000000] efi: EFI v2.31 by American Megatrends
    [ 0.000000] efi: ACPI=0xda8b0000 ACPI 2.0=0xda8b0000 SMBIOS=0xf04c0 MPS=0xfd4b0
    [ 0.000000] efi: mem00: type=3, attr=0xf, range=[0x0000000000000000-0x0000000000008000) (0MB)
    [ 0.000000] efi: mem01: type=7, attr=0xf, range=[0x0000000000008000-0x000000000005e000) (0MB)
    [ 0.000000] efi: mem02: type=4, attr=0xf, range=[0x000000000005e000-0x0000000000060000) (0MB)
    [ 0.000000] efi: mem03: type=3, attr=0xf, range=[0x0000000000060000-0x000000000009f000) (0MB)
    [ 0.000000] efi: mem04: type=6, attr=0x800000000000000f, range=[0x000000000009f000-0x00000000000a0000) (0MB)
    [ 0.000000] efi: mem05: type=2, attr=0xf, range=[0x0000000000100000-0x0000000000fc2000) (14MB)
    [ 0.000000] efi: mem06: type=7, attr=0xf, range=[0x0000000000fc2000-0x0000000001000000) (0MB)
    [ 0.000000] efi: mem07: type=2, attr=0xf, range=[0x0000000001000000-0x0000000001100000) (1MB)
    [ 0.000000] efi: mem08: type=7, attr=0xf, range=[0x0000000001100000-0x0000000002000000) (15MB)
    [ 0.000000] efi: mem09: type=2, attr=0xf, range=[0x0000000002000000-0x0000000002ec2000) (14MB)
    [ 0.000000] efi: mem10: type=7, attr=0xf, range=[0x0000000002ec2000-0x0000000020000000) (465MB)
    [ 0.000000] efi: mem11: type=0, attr=0xf, range=[0x0000000020000000-0x0000000020200000) (2MB)
    [ 0.000000] efi: mem12: type=7, attr=0xf, range=[0x0000000020200000-0x0000000037556000) (371MB)
    [ 0.000000] efi: mem13: type=2, attr=0xf, range=[0x0000000037556000-0x0000000037aa3000) (5MB)
    [ 0.000000] efi: mem14: type=7, attr=0xf, range=[0x0000000037aa3000-0x0000000040004000) (133MB)
    [ 0.000000] efi: mem15: type=0, attr=0xf, range=[0x0000000040004000-0x0000000040005000) (0MB)
    [ 0.000000] efi: mem16: type=7, attr=0xf, range=[0x0000000040005000-0x000000009accd000) (1452MB)
    [ 0.000000] efi: mem17: type=2, attr=0xf, range=[0x000000009accd000-0x00000000ce792000) (826MB)
    [ 0.000000] efi: mem18: type=4, attr=0xf, range=[0x00000000ce792000-0x00000000ceac1000) (3MB)
    [ 0.000000] efi: mem19: type=7, attr=0xf, range=[0x00000000ceac1000-0x00000000ceac5000) (0MB)
    [ 0.000000] efi: mem20: type=4, attr=0xf, range=[0x00000000ceac5000-0x00000000ceace000) (0MB)
    [ 0.000000] efi: mem21: type=7, attr=0xf, range=[0x00000000ceace000-0x00000000ceb65000) (0MB)
    [ 0.000000] efi: mem22: type=1, attr=0xf, range=[0x00000000ceb65000-0x00000000ceb83000) (0MB)
    [ 0.000000] efi: mem23: type=7, attr=0xf, range=[0x00000000ceb83000-0x00000000ceba1000) (0MB)
    [ 0.000000] efi: mem24: type=4, attr=0xf, range=[0x00000000ceba1000-0x00000000cebf6000) (0MB)
    [ 0.000000] efi: mem25: type=7, attr=0xf, range=[0x00000000cebf6000-0x00000000cebfb000) (0MB)
    [ 0.000000] efi: mem26: type=4, attr=0xf, range=[0x00000000cebfb000-0x00000000ced71000) (1MB)
    [ 0.000000] efi: mem27: type=7, attr=0xf, range=[0x00000000ced71000-0x00000000ced79000) (0MB)
    [ 0.000000] efi: mem28: type=4, attr=0xf, range=[0x00000000ced79000-0x00000000d90f9000) (163MB)
    [ 0.000000] efi: mem29: type=7, attr=0xf, range=[0x00000000d90f9000-0x00000000d97b2000) (6MB)
    [ 0.000000] efi: mem30: type=2, attr=0xf, range=[0x00000000d97b2000-0x00000000d97bb000) (0MB)
    [ 0.000000] efi: mem31: type=3, attr=0xf, range=[0x00000000d97bb000-0x00000000d97e5000) (0MB)
    [ 0.000000] efi: mem32: type=10, attr=0xf, range=[0x00000000d97e5000-0x00000000d9de6000) (6MB)
    [ 0.000000] efi: mem33: type=5, attr=0x800000000000000f, range=[0x00000000d9de6000-0x00000000d9de9000) (0MB)
    [ 0.000000] efi: mem34: type=3, attr=0xf, range=[0x00000000d9de9000-0x00000000d9dfe000) (0MB)
    [ 0.000000] efi: mem35: type=5, attr=0x800000000000000f, range=[0x00000000d9dfe000-0x00000000d9e04000) (0MB)
    [ 0.000000] efi: mem36: type=3, attr=0xf, range=[0x00000000d9e04000-0x00000000d9e06000) (0MB)
    [ 0.000000] efi: mem37: type=5, attr=0x800000000000000f, range=[0x00000000d9e06000-0x00000000d9e0b000) (0MB)
    [ 0.000000] efi: mem38: type=3, attr=0xf, range=[0x00000000d9e0b000-0x00000000d9f64000) (1MB)
    [ 0.000000] efi: mem39: type=5, attr=0x800000000000000f, range=[0x00000000d9f64000-0x00000000d9f68000) (0MB)
    [ 0.000000] efi: mem40: type=3, attr=0xf, range=[0x00000000d9f68000-0x00000000d9fa7000) (0MB)
    [ 0.000000] efi: mem41: type=5, attr=0x800000000000000f, range=[0x00000000d9fa7000-0x00000000d9fae000) (0MB)
    [ 0.000000] efi: mem42: type=3, attr=0xf, range=[0x00000000d9fae000-0x00000000d9fb0000) (0MB)
    [ 0.000000] efi: mem43: type=6, attr=0x800000000000000f, range=[0x00000000d9fb0000-0x00000000d9fbd000) (0MB)
    [ 0.000000] efi: mem44: type=5, attr=0x800000000000000f, range=[0x00000000d9fbd000-0x00000000d9fce000) (0MB)
    [ 0.000000] efi: mem45: type=3, attr=0xf, range=[0x00000000d9fce000-0x00000000d9fd1000) (0MB)
    [ 0.000000] efi: mem46: type=5, attr=0x800000000000000f, range=[0x00000000d9fd1000-0x00000000d9fd3000) (0MB)
    [ 0.000000] efi: mem47: type=3, attr=0xf, range=[0x00000000d9fd3000-0x00000000d9fea000) (0MB)
    [ 0.000000] efi: mem48: type=5, attr=0x800000000000000f, range=[0x00000000d9fea000-0x00000000d9ff0000) (0MB)
    [ 0.000000] efi: mem49: type=3, attr=0xf, range=[0x00000000d9ff0000-0x00000000d9ff8000) (0MB)
    [ 0.000000] efi: mem50: type=5, attr=0x800000000000000f, range=[0x00000000d9ff8000-0x00000000d9ff9000) (0MB)
    [ 0.000000] efi: mem51: type=3, attr=0xf, range=[0x00000000d9ff9000-0x00000000da008000) (0MB)
    [ 0.000000] efi: mem52: type=5, attr=0x800000000000000f, range=[0x00000000da008000-0x00000000da009000) (0MB)
    [ 0.000000] efi: mem53: type=3, attr=0xf, range=[0x00000000da009000-0x00000000da014000) (0MB)
    [ 0.000000] efi: mem54: type=5, attr=0x800000000000000f, range=[0x00000000da014000-0x00000000da019000) (0MB)
    [ 0.000000] efi: mem55: type=3, attr=0xf, range=[0x00000000da019000-0x00000000da037000) (0MB)
    [ 0.000000] efi: mem56: type=5, attr=0x800000000000000f, range=[0x00000000da037000-0x00000000da039000) (0MB)
    [ 0.000000] efi: mem57: type=3, attr=0xf, range=[0x00000000da039000-0x00000000da04d000) (0MB)
    [ 0.000000] efi: mem58: type=5, attr=0x800000000000000f, range=[0x00000000da04d000-0x00000000da04e000) (0MB)
    [ 0.000000] efi: mem59: type=3, attr=0xf, range=[0x00000000da04e000-0x00000000da060000) (0MB)
    [ 0.000000] efi: mem60: type=5, attr=0x800000000000000f, range=[0x00000000da060000-0x00000000da086000) (0MB)
    [ 0.000000] efi: mem61: type=3, attr=0xf, range=[0x00000000da086000-0x00000000da09a000) (0MB)
    [ 0.000000] efi: mem62: type=5, attr=0x800000000000000f, range=[0x00000000da09a000-0x00000000da09b000) (0MB)
    [ 0.000000] efi: mem63: type=3, attr=0xf, range=[0x00000000da09b000-0x00000000da09c000) (0MB)
    [ 0.000000] efi: mem64: type=5, attr=0x800000000000000f, range=[0x00000000da09c000-0x00000000da09e000) (0MB)
    [ 0.000000] efi: mem65: type=3, attr=0xf, range=[0x00000000da09e000-0x00000000da09f000) (0MB)
    [ 0.000000] efi: mem66: type=5, attr=0x800000000000000f, range=[0x00000000da09f000-0x00000000da0a4000) (0MB)
    [ 0.000000] efi: mem67: type=3, attr=0xf, range=[0x00000000da0a4000-0x00000000da0b9000) (0MB)
    [ 0.000000] efi: mem68: type=6, attr=0x800000000000000f, range=[0x00000000da0b9000-0x00000000da119000) (0MB)
    [ 0.000000] efi: mem69: type=5, attr=0x800000000000000f, range=[0x00000000da119000-0x00000000da133000) (0MB)
    [ 0.000000] efi: mem70: type=6, attr=0x800000000000000f, range=[0x00000000da133000-0x00000000da139000) (0MB)
    [ 0.000000] efi: mem71: type=6, attr=0x800000000000000f, range=[0x00000000da139000-0x00000000da13e000) (0MB)
    [ 0.000000] efi: mem72: type=6, attr=0x800000000000000f, range=[0x00000000da13e000-0x00000000da140000) (0MB)
    [ 0.000000] efi: mem73: type=6, attr=0x800000000000000f, range=[0x00000000da140000-0x00000000da15d000) (0MB)
    [ 0.000000] efi: mem74: type=0, attr=0xf, range=[0x00000000da15d000-0x00000000da28c000) (1MB)
    [ 0.000000] efi: mem75: type=0, attr=0xf, range=[0x00000000da28c000-0x00000000da5f2000) (3MB)
    [ 0.000000] efi: mem76: type=0, attr=0xf, range=[0x00000000da5f2000-0x00000000da5f8000) (0MB)
    [ 0.000000] efi: mem77: type=0, attr=0xf, range=[0x00000000da5f8000-0x00000000da65d000) (0MB)
    [ 0.000000] efi: mem78: type=10, attr=0xf, range=[0x00000000da65d000-0x00000000da72b000) (0MB)
    [ 0.000000] efi: mem79: type=10, attr=0xf, range=[0x00000000da72b000-0x00000000da8c7000) (1MB)
    [ 0.000000] efi: mem80: type=10, attr=0xf, range=[0x00000000da8c7000-0x00000000da8c9000) (0MB)
    [ 0.000000] efi: mem81: type=10, attr=0xf, range=[0x00000000da8c9000-0x00000000da8dd000) (0MB)
    [ 0.000000] efi: mem82: type=9, attr=0xf, range=[0x00000000da8dd000-0x00000000da8e1000) (0MB)
    [ 0.000000] efi: mem83: type=9, attr=0xf, range=[0x00000000da8e1000-0x00000000da8e2000) (0MB)
    [ 0.000000] efi: mem84: type=4, attr=0xf, range=[0x00000000da8e2000-0x00000000da8e3000) (0MB)
    [ 0.000000] efi: mem85: type=10, attr=0xf, range=[0x00000000da8e3000-0x00000000da926000) (0MB)
    [ 0.000000] efi: mem86: type=4, attr=0xf, range=[0x00000000da926000-0x00000000daa70000) (1MB)
    [ 0.000000] efi: mem87: type=3, attr=0xf, range=[0x00000000daa70000-0x00000000dad06000) (2MB)
    [ 0.000000] efi: mem88: type=4, attr=0xf, range=[0x00000000dad06000-0x00000000dad0b000) (0MB)
    [ 0.000000] efi: mem89: type=3, attr=0xf, range=[0x00000000dad0b000-0x00000000dad0f000) (0MB)
    [ 0.000000] efi: mem90: type=4, attr=0xf, range=[0x00000000dad0f000-0x00000000dad1c000) (0MB)
    [ 0.000000] efi: mem91: type=3, attr=0xf, range=[0x00000000dad1c000-0x00000000dad2e000) (0MB)
    [ 0.000000] efi: mem92: type=4, attr=0xf, range=[0x00000000dad2e000-0x00000000dad35000) (0MB)
    [ 0.000000] efi: mem93: type=6, attr=0x800000000000000f, range=[0x00000000dad35000-0x00000000daff4000) (2MB)
    [ 0.000000] efi: mem94: type=4, attr=0xf, range=[0x00000000daff4000-0x00000000db000000) (0MB)
    [ 0.000000] efi: mem95: type=7, attr=0xf, range=[0x0000000100000000-0x000000011f200000) (498MB)
    [ 0.000000] efi: mem96: type=0, attr=0x8000000000000000, range=[0x00000000dbc00000-0x00000000dfe00000) (66MB)
    [ 0.000000] efi: mem97: type=11, attr=0x8000000000000001, range=[0x00000000f8000000-0x00000000fc000000) (64MB)
    [ 0.000000] efi: mem98: type=11, attr=0x8000000000000001, range=[0x00000000fec00000-0x00000000fec01000) (0MB)
    [ 0.000000] efi: mem99: type=11, attr=0x8000000000000001, range=[0x00000000fed00000-0x00000000fed04000) (0MB)
    [ 0.000000] efi: mem100: type=11, attr=0x8000000000000001, range=[0x00000000fed1c000-0x00000000fed20000) (0MB)
    [ 0.000000] efi: mem101: type=11, attr=0x8000000000000001, range=[0x00000000fee00000-0x00000000fee01000) (0MB)
    [ 0.000000] efi: mem102: type=11, attr=0x8000000000000001, range=[0x00000000ff000000-0x0000000100000000) (16MB)
    [ 0.000000] DMI 2.7 present.
    [ 0.000000] DMI: ASUSTeK COMPUTER INC. UX31A/UX31A, BIOS UX31A.204 05/09/2012
    [ 0.000000] e820 update range: 0000000000000000 - 0000000000010000 (usable) ==> (reserved)
    [ 0.000000] e820 remove range: 00000000000a0000 - 0000000000100000 (usable)
    [ 0.000000] No AGP bridge found
    [ 0.000000] last_pfn = 0x11f200 max_arch_pfn = 0x400000000
    [ 0.000000] MTRR default type: uncachable
    [ 0.000000] MTRR fixed ranges enabled:
    [ 0.000000] 00000-9FFFF write-back
    [ 0.000000] A0000-BFFFF uncachable
    [ 0.000000] C0000-CFFFF write-protect
    [ 0.000000] D0000-DFFFF uncachable
    [ 0.000000] E0000-FFFFF write-protect
    [ 0.000000] MTRR variable ranges enabled:
    [ 0.000000] 0 base 000000000 mask F00000000 write-back
    [ 0.000000] 1 base 100000000 mask FE0000000 write-back
    [ 0.000000] 2 base 0E0000000 mask FE0000000 uncachable
    [ 0.000000] 3 base 0DC000000 mask FFC000000 uncachable
    [ 0.000000] 4 base 0DBC00000 mask FFFC00000 uncachable
    [ 0.000000] 5 base 11F800000 mask FFF800000 uncachable
    [ 0.000000] 6 base 11F400000 mask FFFC00000 uncachable
    [ 0.000000] 7 base 11F200000 mask FFFE00000 uncachable
    [ 0.000000] 8 disabled
    [ 0.000000] 9 disabled
    [ 0.000000] x86 PAT enabled: cpu 0, old 0x7040600070406, new 0x7010600070106
    [ 0.000000] e820 update range: 00000000dbc00000 - 0000000100000000 (usable) ==> (reserved)
    [ 0.000000] last_pfn = 0xdb000 max_arch_pfn = 0x400000000
    [ 0.000000] found SMP MP-table at [ffff8800000fd780] fd780
    [ 0.000000] initial memory mapped : 0 - 20000000
    [ 0.000000] Base memory trampoline at [ffff880000098000] 98000 size 20480
    [ 0.000000] init_memory_mapping: 0000000000000000-00000000db000000
    [ 0.000000] 0000000000 - 00db000000 page 2M
    [ 0.000000] kernel direct mapping tables up to db000000 @ 1fffb000-20000000
    [ 0.000000] init_memory_mapping: 0000000100000000-000000011f200000
    [ 0.000000] 0100000000 - 011f200000 page 2M
    [ 0.000000] kernel direct mapping tables up to 11f200000 @ d97b5000-d97bb000
    [ 0.000000] RAMDISK: 37556000 - 37aa3000
    [ 0.000000] ACPI: RSDP 00000000da8b0000 00024 (v02 _ASUS_)
    [ 0.000000] ACPI: XSDT 00000000da8b0090 0009C (v01 _ASUS_ Notebook 01072009 AMI 00010013)
    [ 0.000000] ACPI: FACP 00000000da8c2058 000F4 (v04 _ASUS_ Notebook 01072009 AMI 00010013)
    [ 0.000000] ACPI: DSDT 00000000da8b01c0 11E96 (v02 _ASUS_ Notebook 00000013 INTL 20091112)
    [ 0.000000] ACPI: FACS 00000000da8daf80 00040
    [ 0.000000] ACPI: APIC 00000000da8c2150 00072 (v03 _ASUS_ Notebook 01072009 AMI 00010013)
    [ 0.000000] ACPI: FPDT 00000000da8c21c8 00044 (v01 _ASUS_ Notebook 01072009 AMI 00010013)
    [ 0.000000] ACPI: ECDT 00000000da8c2210 000C1 (v01 _ASUS_ Notebook 01072009 AMI. 00000005)
    [ 0.000000] ACPI: MCFG 00000000da8c22d8 0003C (v01 _ASUS_ Notebook 01072009 MSFT 00000097)
    [ 0.000000] ACPI: SSDT 00000000da8c2318 00A3C (v01 DptfTa DptfTab 00001000 INTL 20091112)
    [ 0.000000] ACPI: SSDT 00000000da8c2d58 00CA5 (v01 SADptf SADptf_ 00001000 INTL 20091112)
    [ 0.000000] ACPI: SSDT 00000000da8c3a00 00098 (v01 PchDpt PchDptf 00001000 INTL 20091112)
    [ 0.000000] ACPI: SSDT 00000000da8c3a98 0091C (v01 CfgTDP CfgTDP_ 00001000 INTL 20091112)
    [ 0.000000] ACPI: SLIC 00000000da8c43b8 00176 (v01 _ASUS_ Notebook 01072009 ASUS 00000001)
    [ 0.000000] ACPI: HPET 00000000da8c4530 00038 (v01 _ASUS_ Notebook 01072009 AMI. 00000005)
    [ 0.000000] ACPI: SSDT 00000000da8c4568 00886 (v01 PmRef Cpu0Ist 00003000 INTL 20051117)
    [ 0.000000] ACPI: SSDT 00000000da8c4df0 00A92 (v01 PmRef CpuPm 00003000 INTL 20051117)
    [ 0.000000] ACPI: DMAR 00000000da8c5888 000B8 (v01 INTEL SNB 00000001 INTL 00000001)
    [ 0.000000] ACPI: BGRT 00000000da8c5940 00038 (v00 _ASUS_ Notebook 01072009 ASUS 00010013)
    [ 0.000000] ACPI: Local APIC address 0xfee00000
    [ 0.000000] No NUMA configuration found
    [ 0.000000] Faking a node at 0000000000000000-000000011f200000
    [ 0.000000] Initmem setup node 0 0000000000000000-000000011f200000
    [ 0.000000] NODE_DATA [000000011f1fc000 - 000000011f1fffff]
    [ 0.000000] [ffffea0000000000-ffffea00047fffff] PMD -> [ffff88011a800000-ffff88011e7fffff] on node 0
    [ 0.000000] Zone PFN ranges:
    [ 0.000000] DMA 0x00000010 -> 0x00001000
    [ 0.000000] DMA32 0x00001000 -> 0x00100000
    [ 0.000000] Normal 0x00100000 -> 0x0011f200
    [ 0.000000] Movable zone start PFN for each node
    [ 0.000000] Early memory PFN ranges
    [ 0.000000] 0: 0x00000010 -> 0x0000009f
    [ 0.000000] 0: 0x00000100 -> 0x00020000
    [ 0.000000] 0: 0x00020200 -> 0x00040004
    [ 0.000000] 0: 0x00040005 -> 0x000d97e5
    [ 0.000000] 0: 0x000d9de9 -> 0x000d9dfe
    [ 0.000000] 0: 0x000d9e04 -> 0x000d9e06
    [ 0.000000] 0: 0x000d9e0b -> 0x000d9f64
    [ 0.000000] 0: 0x000d9f68 -> 0x000d9fa7
    [ 0.000000] 0: 0x000d9fae -> 0x000d9fb0
    [ 0.000000] 0: 0x000d9fce -> 0x000d9fd1
    [ 0.000000] 0: 0x000d9fd3 -> 0x000d9fea
    [ 0.000000] 0: 0x000d9ff0 -> 0x000d9ff8
    [ 0.000000] 0: 0x000d9ff9 -> 0x000da008
    [ 0.000000] 0: 0x000da009 -> 0x000da014
    [ 0.000000] 0: 0x000da019 -> 0x000da037
    [ 0.000000] 0: 0x000da039 -> 0x000da04d
    [ 0.000000] 0: 0x000da04e -> 0x000da060
    [ 0.000000] 0: 0x000da086 -> 0x000da09a
    [ 0.000000] 0: 0x000da09b -> 0x000da09c
    [ 0.000000] 0: 0x000da09e -> 0x000da09f
    [ 0.000000] 0: 0x000da0a4 -> 0x000da0b9
    [ 0.000000] 0: 0x000da8e2 -> 0x000da8e3
    [ 0.000000] 0: 0x000da926 -> 0x000dad35
    [ 0.000000] 0: 0x000daff4 -> 0x000db000
    [ 0.000000] 0: 0x00100000 -> 0x0011f200
    [ 0.000000] On node 0 totalpages: 1019371
    [ 0.000000] DMA zone: 64 pages used for memmap
    [ 0.000000] DMA zone: 11 pages reserved
    [ 0.000000] DMA zone: 3908 pages, LIFO batch:0
    [ 0.000000] DMA32 zone: 16320 pages used for memmap
    [ 0.000000] DMA32 zone: 871580 pages, LIFO batch:31
    [ 0.000000] Normal zone: 1992 pages used for memmap
    [ 0.000000] Normal zone: 125496 pages, LIFO batch:31
    [ 0.000000] ACPI: PM-Timer IO Port: 0x408
    [ 0.000000] ACPI: Local APIC address 0xfee00000
    [ 0.000000] ACPI: LAPIC (acpi_id[0x01] lapic_id[0x00] enabled)
    [ 0.000000] ACPI: LAPIC (acpi_id[0x02] lapic_id[0x02] enabled)
    [ 0.000000] ACPI: LAPIC (acpi_id[0x03] lapic_id[0x01] enabled)
    [ 0.000000] ACPI: LAPIC (acpi_id[0x04] lapic_id[0x03] enabled)
    [ 0.000000] ACPI: LAPIC_NMI (acpi_id[0xff] high edge lint[0x1])
    [ 0.000000] ACPI: IOAPIC (id[0x02] address[0xfec00000] gsi_base[0])
    [ 0.000000] IOAPIC[0]: apic_id 2, version 32, address 0xfec00000, GSI 0-23
    [ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
    [ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
    [ 0.000000] ACPI: IRQ0 used by override.
    [ 0.000000] ACPI: IRQ2 used by override.
    [ 0.000000] ACPI: IRQ9 used by override.
    [ 0.000000] Using ACPI (MADT) for SMP configuration information
    [ 0.000000] ACPI: HPET id: 0x8086a701 base: 0xfed00000
    [ 0.000000] SMP: Allowing 4 CPUs, 0 hotplug CPUs
    [ 0.000000] nr_irqs_gsi: 40
    [ 0.000000] PM: Registered nosave memory: 000000000009f000 - 00000000000a0000
    [ 0.000000] PM: Registered nosave memory: 00000000000a0000 - 0000000000100000
    [ 0.000000] PM: Registered nosave memory: 0000000020000000 - 0000000020200000
    [ 0.000000] PM: Registered nosave memory: 0000000040004000 - 0000000040005000
    [ 0.000000] PM: Registered nosave memory: 00000000d97e5000 - 00000000d9de6000
    [ 0.000000] PM: Registered nosave memory: 00000000d9de6000 - 00000000d9de9000
    [ 0.000000] PM: Registered nosave memory: 00000000d9dfe000 - 00000000d9e04000
    [ 0.000000] PM: Registered nosave memory: 00000000d9e06000 - 00000000d9e0b000
    [ 0.000000] PM: Registered nosave memory: 00000000d9f64000 - 00000000d9f68000
    [ 0.000000] PM: Registered nosave memory: 00000000d9fa7000 - 00000000d9fae000
    [ 0.000000] PM: Registered nosave memory: 00000000d9fb0000 - 00000000d9fce000
    [ 0.000000] PM: Registered nosave memory: 00000000d9fd1000 - 00000000d9fd3000
    [ 0.000000] PM: Registered nosave memory: 00000000d9fea000 - 00000000d9ff0000
    [ 0.000000] PM: Registered nosave memory: 00000000d9ff8000 - 00000000d9ff9000
    [ 0.000000] PM: Registered nosave memory: 00000000da008000 - 00000000da009000
    [ 0.000000] PM: Registered nosave memory: 00000000da014000 - 00000000da019000
    [ 0.000000] PM: Registered nosave memory: 00000000da037000 - 00000000da039000
    [ 0.000000] PM: Registered nosave memory: 00000000da04d000 - 00000000da04e000
    [ 0.000000] PM: Registered nosave memory: 00000000da060000 - 00000000da086000
    [ 0.000000] PM: Registered nosave memory: 00000000da09a000 - 00000000da09b000
    [ 0.000000] PM: Registered nosave memory: 00000000da09c000 - 00000000da09e000
    [ 0.000000] PM: Registered nosave memory: 00000000da09f000 - 00000000da0a4000
    [ 0.000000] PM: Registered nosave memory: 00000000da0b9000 - 00000000da65d000
    [ 0.000000] PM: Registered nosave memory: 00000000da65d000 - 00000000da8dd000
    [ 0.000000] PM: Registered nosave memory: 00000000da8dd000 - 00000000da8e2000
    [ 0.000000] PM: Registered nosave memory: 00000000da8e3000 - 00000000da926000
    [ 0.000000] PM: Registered nosave memory: 00000000dad35000 - 00000000daff4000
    [ 0.000000] PM: Registered nosave memory: 00000000db000000 - 00000000dbc00000
    [ 0.000000] PM: Registered nosave memory: 00000000dbc00000 - 00000000dfe00000
    [ 0.000000] PM: Registered nosave memory: 00000000dfe00000 - 00000000f8000000
    [ 0.000000] PM: Registered nosave memory: 00000000f8000000 - 00000000fc000000
    [ 0.000000] PM: Registered nosave memory: 00000000fc000000 - 00000000fec00000
    [ 0.000000] PM: Registered nosave memory: 00000000fec00000 - 00000000fec01000
    [ 0.000000] PM: Registered nosave memory: 00000000fec01000 - 00000000fed00000
    [ 0.000000] PM: Registered nosave memory: 00000000fed00000 - 00000000fed04000
    [ 0.000000] PM: Registered nosave memory: 00000000fed04000 - 00000000fed1c000
    [ 0.000000] PM: Registered nosave memory: 00000000fed1c000 - 00000000fed20000
    [ 0.000000] PM: Registered nosave memory: 00000000fed20000 - 00000000fee00000
    [ 0.000000] PM: Registered nosave memory: 00000000fee00000 - 00000000fee01000
    [ 0.000000] PM: Registered nosave memory: 00000000fee01000 - 00000000ff000000
    [ 0.000000] PM: Registered nosave memory: 00000000ff000000 - 0000000100000000
    [ 0.000000] Allocating PCI resources starting at dfe00000 (gap: dfe00000:18200000)
    [ 0.000000] Booting paravirtualized kernel on bare hardware
    [ 0.000000] setup_percpu: NR_CPUS:64 nr_cpumask_bits:64 nr_cpu_ids:4 nr_node_ids:1
    [ 0.000000] PERCPU: Embedded 28 pages/cpu @ffff88011ee00000 s82880 r8192 d23616 u524288
    [ 0.000000] pcpu-alloc: s82880 r8192 d23616 u524288 alloc=1*2097152
    [ 0.000000] pcpu-alloc: [0] 0 1 2 3
    [ 0.000000] Built 1 zonelists in Node order, mobility grouping on. Total pages: 1000984
    [ 0.000000] Policy zone: Normal
    [ 0.000000] Kernel command line: BOOT_IMAGE=/vmlinuz-linux root=/dev/mapper/vols-vroot ro cryptdevice=/dev/sda3:encdev:allow-discards quiet add_efi_memmap elevator=noop
    [ 0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes)
    [ 0.000000] xsave/xrstor: enabled xstate_bv 0x7, cntxt size 0x340
    [ 0.000000] Checking aperture...
    [ 0.000000] No AGP bridge found
    [ 0.000000] Calgary: detecting Calgary via BIOS EBDA area
    [ 0.000000] Calgary: Unable to locate Rio Grande table in EBDA - bailing!
    [ 0.000000] Memory: 3749436k/4704256k available (4538k kernel code, 626772k absent, 328048k reserved, 4308k data, 740k init)
    [ 0.000000] SLUB: Genslabs=15, HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
    [ 0.000000] Preemptible hierarchical RCU implementation.
    [ 0.000000] RCU dyntick-idle grace-period acceleration is enabled.
    [ 0.000000] Dump stacks of tasks blocking RCU-preempt GP.
    [ 0.000000] NR_IRQS:4352 nr_irqs:712 16
    [ 0.000000] Extended CMOS year: 2000
    [ 0.000000] Console: colour dummy device 80x25
    [ 0.000000] console [tty0] enabled
    [ 0.000000] allocated 16777216 bytes of page_cgroup
    [ 0.000000] please try 'cgroup_disable=memory' option if you don't want memory cgroups
    [ 0.000000] hpet clockevent registered
    [ 0.000000] Fast TSC calibration using PIT
    [ 0.003333] Detected 1696.065 MHz processor.
    [ 0.000002] Calibrating delay loop (skipped), value calculated using timer frequency.. 3393.46 BogoMIPS (lpj=5653550)
    [ 0.000007] pid_max: default: 32768 minimum: 301
    [ 0.000027] init_memory_mapping: 00000000dbc00000-00000000dfe00000
    [ 0.000031] 00dbc00000 - 00dfe00000 page 2M
    [ 0.151052] Security Framework initialized
    [ 0.151060] AppArmor: AppArmor disabled by boot time parameter
    [ 0.151411] Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes)
    [ 0.152933] Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes)
    [ 0.153609] Mount-cache hash table entries: 256
    [ 0.153820] Initializing cgroup subsys cpuacct
    [ 0.153823] Initializing cgroup subsys memory
    [ 0.153832] Initializing cgroup subsys devices
    [ 0.153834] Initializing cgroup subsys freezer
    [ 0.153836] Initializing cgroup subsys net_cls
    [ 0.153838] Initializing cgroup subsys blkio
    [ 0.153874] CPU: Physical Processor ID: 0
    [ 0.153875] CPU: Processor Core ID: 0
    [ 0.153882] ENERGY_PERF_BIAS: Set to 'normal', was 'performance'
    [ 0.153883] ENERGY_PERF_BIAS: View and update with x86_energy_perf_policy(8)
    [ 0.154440] mce: CPU supports 7 MCE banks
    [ 0.154456] CPU0: Thermal monitoring enabled (TM1)
    [ 0.154464] using mwait in idle threads.
    [ 0.155854] ACPI: Core revision 20120320
    [ 0.172956] ftrace: allocating 17824 entries in 70 pages
    [ 0.186631] DMAR: Host address width 36
    [ 0.186634] DMAR: DRHD base: 0x000000fed90000 flags: 0x0
    [ 0.186647] IOMMU 0: reg_base_addr fed90000 ver 1:0 cap c0000020e60262 ecap f0101a
    [ 0.186650] DMAR: DRHD base: 0x000000fed91000 flags: 0x1
    [ 0.186661] IOMMU 1: reg_base_addr fed91000 ver 1:0 cap c9008020660262 ecap f0105a
    [ 0.186663] DMAR: RMRR base: 0x000000da3af000 end: 0x000000da3cbfff
    [ 0.186666] DMAR: RMRR base: 0x000000dbc00000 end: 0x000000dfdfffff
    [ 0.186743] IOAPIC id 2 under DRHD base 0xfed91000 IOMMU 1
    [ 0.186745] HPET id 0 under DRHD base 0xfed91000
    [ 0.186954] Enabled IRQ remapping in x2apic mode
    [ 0.186956] Enabling x2apic
    [ 0.186958] Enabled x2apic
    [ 0.186967] Switched APIC routing to cluster x2apic.
    [ 0.187451] ..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
    [ 0.220416] CPU0: Intel(R) Core(TM) i5-3317U CPU @ 1.70GHz stepping 09
    [ 0.324902] Performance Events: PEBS fmt1+, generic architected perfmon, Intel PMU driver.
    [ 0.324909] ... version: 3
    [ 0.324910] ... bit width: 48
    [ 0.324912] ... generic registers: 4
    [ 0.324914] ... value mask: 0000ffffffffffff
    [ 0.324916] ... max period: 000000007fffffff
    [ 0.324917] ... fixed-purpose events: 3
    [ 0.324919] ... event mask: 000000070000000f
    [ 0.344968] NMI watchdog: enabled, takes one hw-pmu counter.
    [ 0.364889] Booting Node 0, Processors #1
    [ 0.378630] NMI watchdog: enabled, takes one hw-pmu counter.
    [ 0.391536] #2
    [ 0.405332] NMI watchdog: enabled, takes one hw-pmu counter.
    [ 0.418168] #3 Ok.
    [ 0.431901] NMI watchdog: enabled, takes one hw-pmu counter.
    [ 0.431937] Brought up 4 CPUs
    [ 0.431939] Total of 4 processors activated (13573.87 BogoMIPS).
    [ 0.436493] devtmpfs: initialized
    [ 0.437768] PM: Registering ACPI NVS region [mem 0xd97e5000-0xd9de5fff] (6295552 bytes)
    [ 0.437873] PM: Registering ACPI NVS region [mem 0xda65d000-0xda8dcfff] (2621440 bytes)
    [ 0.437918] PM: Registering ACPI NVS region [mem 0xda8e3000-0xda925fff] (274432 bytes)
    [ 0.438826] NET: Registered protocol family 16
    [ 0.438966] ACPI FADT declares the system doesn't support PCIe ASPM, so disable it
    [ 0.438969] ACPI: bus type pci registered
    [ 0.439040] PCI: MMCONFIG for domain 0000 [bus 00-3f] at [mem 0xf8000000-0xfbffffff] (base 0xf8000000)
    [ 0.439044] PCI: MMCONFIG at [mem 0xf8000000-0xfbffffff] reserved in E820
    [ 0.488460] PCI: Using configuration type 1 for base access
    [ 0.489097] bio: create slab <bio-0> at 0
    [ 0.489161] ACPI: Added _OSI(Module Device)
    [ 0.489163] ACPI: Added _OSI(Processor Device)
    [ 0.489165] ACPI: Added _OSI(3.0 _SCP Extensions)
    [ 0.489168] ACPI: Added _OSI(Processor Aggregator Device)
    [ 0.492211] ACPI: EC: EC description table is found, configuring boot EC
    [ 0.495384] ACPI: Executed 1 blocks of module-level executable AML code
    [ 0.500091] [Firmware Bug]: ACPI: BIOS _OSI(Linux) query ignored
    [ 0.500635] ACPI: SSDT 00000000da60a018 00853 (v01 PmRef Cpu0Cst 00003001 INTL 20051117)
    [ 0.501405] ACPI: Dynamic OEM Table Load:
    [ 0.501409] ACPI: SSDT (null) 00853 (v01 PmRef Cpu0Cst 00003001 INTL 20051117)
    [ 0.501770] ACPI: SSDT 00000000da60ba98 00303 (v01 PmRef ApIst 00003000 INTL 20051117)
    [ 0.502576] ACPI: Dynamic OEM Table Load:
    [ 0.502579] ACPI: SSDT (null) 00303 (v01 PmRef ApIst 00003000 INTL 20051117)
    [ 0.502752] ACPI: SSDT 00000000da60cc18 00119 (v01 PmRef ApCst 00003000 INTL 20051117)
    [ 0.503510] ACPI: Dynamic OEM Table Load:
    [ 0.503513] ACPI: SSDT (null) 00119 (v01 PmRef ApCst 00003000 INTL 20051117)
    [ 0.504368] ACPI: Interpreter enabled
    [ 0.504373] ACPI: (supports S0 S3 S4 S5)
    [ 0.504406] ACPI: Using IOAPIC for interrupt routing
    [ 0.512510] ACPI: EC: GPE = 0x19, I/O: command/status = 0x66, data = 0x62
    [ 0.512789] ACPI: No dock devices found.
    [ 0.512794] PCI: Using host bridge windows from ACPI; if necessary, use "pci=nocrs" and report a bug
    [ 0.513213] ACPI: PCI Root Bridge [PCI0] (domain 0000 [bus 00-3e])
    [ 0.513809] pci_root PNP0A08:00: host bridge window [io 0x0000-0x0cf7]
    [ 0.513812] pci_root PNP0A08:00: host bridge window [io 0x0d00-0xffff]
    [ 0.513815] pci_root PNP0A08:00: host bridge window [mem 0x000a0000-0x000bffff]
    [ 0.513818] pci_root PNP0A08:00: host bridge window [mem 0x000d0000-0x000d3fff]
    [ 0.513821] pci_root PNP0A08:00: host bridge window [mem 0x000d4000-0x000d7fff]
    [ 0.513823] pci_root PNP0A08:00: host bridge window [mem 0x000d8000-0x000dbfff]
    [ 0.513826] pci_root PNP0A08:00: host bridge window [mem 0x000dc000-0x000dffff]
    [ 0.513829] pci_root PNP0A08:00: host bridge window [mem 0xdfe00000-0xfeafffff]
    [ 0.513867] PCI host bridge to bus 0000:00
    [ 0.513870] pci_bus 0000:00: root bus resource [io 0x0000-0x0cf7]
    [ 0.513873] pci_bus 0000:00: root bus resource [io 0x0d00-0xffff]
    [ 0.513875] pci_bus 0000:00: root bus resource [mem 0x000a0000-0x000bffff]
    [ 0.513878] pci_bus 0000:00: root bus resource [mem 0x000d0000-0x000d3fff]
    [ 0.513880] pci_bus 0000:00: root bus resource [mem 0x000d4000-0x000d7fff]
    [ 0.513883] pci_bus 0000:00: root bus resource [mem 0x000d8000-0x000dbfff]
    [ 0.513885] pci_bus 0000:00: root bus resource [mem 0x000dc000-0x000dffff]
    [ 0.513888] pci_bus 0000:00: root bus resource [mem 0xdfe00000-0xfeafffff]
    [ 0.513899] pci 0000:00:00.0: [8086:0154] type 00 class 0x060000
    [ 0.513952] pci 0000:00:02.0: [8086:0166] type 00 class 0x030000
    [ 0.513968] pci 0000:00:02.0: reg 10: [mem 0xf7800000-0xf7bfffff 64bit]
    [ 0.513977] pci 0000:00:02.0: reg 18: [mem 0xe0000000-0xefffffff 64bit pref]
    [ 0.513985] pci 0000:00:02.0: reg 20: [io 0xf000-0xf03f]
    [ 0.514032] pci 0000:00:04.0: [8086:0153] type 00 class 0x118000
    [ 0.514046] pci 0000:00:04.0: reg 10: [mem 0xfed98000-0xfed9ffff 64bit]
    [ 0.514135] pci 0000:00:14.0: [8086:1e31] type 00 class 0x0c0330
    [ 0.514163] pci 0000:00:14.0: reg 10: [mem 0xf7d00000-0xf7d0ffff 64bit]
    [ 0.514257] pci 0000:00:14.0: PME# supported from D3hot D3cold
    [ 0.514289] pci 0000:00:16.0: [8086:1e3a] type 00 class 0x078000
    [ 0.514320] pci 0000:00:16.0: reg 10: [mem 0xf7d22000-0xf7d2200f 64bit]
    [ 0.514413] pci 0000:00:16.0: PME# supported from D0 D3hot D3cold
    [ 0.514463] pci 0000:00:1a.0: [8086:1e2d] type 00 class 0x0c0320
    [ 0.514489] pci 0000:00:1a.0: reg 10: [mem 0xf7d20000-0xf7d203ff]
    [ 0.514599] pci 0000:00:1a.0: PME# supported from D0 D3hot D3cold
    [ 0.514632] pci 0000:00:1b.0: [8086:1e20] type 00 class 0x040300
    [ 0.514654] pci 0000:00:1b.0: reg 10: [mem 0xf7d18000-0xf7d1bfff 64bit]
    [ 0.514739] pci 0000:00:1b.0: PME# supported from D0 D3hot D3cold
    [ 0.514775] pci 0000:00:1c.0: [8086:1e10] type 01 class 0x060400
    [ 0.514909] pci 0000:00:1c.0: PME# supported from D0 D3hot D3cold
    [ 0.514948] pci 0000:00:1c.1: [8086:1e12] type 01 class 0x060400
    [ 0.515082] pci 0000:00:1c.1: PME# supported from D0 D3hot D3cold
    [ 0.515141] pci 0000:00:1d.0: [8086:1e26] type 00 class 0x0c0320
    [ 0.515168] pci 0000:00:1d.0: reg 10: [mem 0xf7d1f000-0xf7d1f3ff]
    [ 0.515282] pci 0000:00:1d.0: PME# supported from D0 D3hot D3cold
    [ 0.515316] pci 0000:00:1f.0: [8086:1e59] type 00 class 0x060100
    [ 0.515466] pci 0000:00:1f.2: [8086:1e03] type 00 class 0x010601
    [ 0.515490] pci 0000:00:1f.2: reg 10: [io 0xf0b0-0xf0b7]
    [ 0.515500] pci 0000:00:1f.2: reg 14: [io 0xf0a0-0xf0a3]
    [ 0.515512] pci 0000:00:1f.2: reg 18: [io 0xf090-0xf097]
    [ 0.515522] pci 0000:00:1f.2: reg 1c: [io 0xf080-0xf083]
    [ 0.515532] pci 0000:00:1f.2: reg 20: [io 0xf060-0xf07f]
    [ 0.515542] pci 0000:00:1f.2: reg 24: [mem 0xf7d1e000-0xf7d1e7ff]
    [ 0.515605] pci 0000:00:1f.2: PME# supported from D3hot
    [ 0.515629] pci 0000:00:1f.3: [8086:1e22] type 00 class 0x0c0500
    [ 0.515651] pci 0000:00:1f.3: reg 10: [mem 0xf7d1d000-0xf7d1d0ff 64bit]
    [ 0.515682] pci 0000:00:1f.3: reg 20: [io 0xf040-0xf05f]
    [ 0.515732] pci 0000:00:1f.6: [8086:1e24] type 00 class 0x118000
    [ 0.515758] pci 0000:00:1f.6: reg 10: [mem 0xf7d1c000-0xf7d1cfff 64bit]
    [ 0.515922] pci 0000:00:1c.0: PCI bridge to [bus 01-01]
    [ 0.516173] pci 0000:02:00.0: [8086:088e] type 00 class 0x028000
    [ 0.516366] pci 0000:02:00.0: reg 10: [mem 0xf7c00000-0xf7c01fff 64bit]
    [ 0.517198] pci 0000:02:00.0: PME# supported from D0 D3hot D3cold
    [ 0.521918] pci 0000:00:1c.1: PCI bridge to [bus 02-02]
    [ 0.521928] pci 0000:00:1c.1: bridge window [mem 0xf7c00000-0xf7cfffff]
    [ 0.521957] ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
    [ 0.522122] ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.RP01._PRT]
    [ 0.522161] ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.RP02._PRT]
    [ 0.522339] pci0000:00: Requesting ACPI _OSC control (0x1d)
    [ 0.522604] pci0000:00: ACPI _OSC control (0x18) granted
    [ 0.528361] ACPI: PCI Interrupt Link [LNKA] (IRQs 3 4 5 6 7 10 *11 12)
    [ 0.528420] ACPI: PCI Interrupt Link [LNKB] (IRQs *3 4 5 6 7 10 12)
    [ 0.528480] ACPI: PCI Interrupt Link [LNKC] (IRQs 3 4 5 6 7 *10 12)
    [ 0.528531] ACPI: PCI Interrupt Link [LNKD] (IRQs 3 4 5 6 7 *10 12)
    [ 0.528584] ACPI: PCI Interrupt Link [LNKE] (IRQs 3 4 5 6 7 10 12) *0, disabled.
    [ 0.528635] ACPI: PCI Interrupt Link [LNKF] (IRQs 3 4 5 6 7 10 12) *0, disabled.
    [ 0.528687] ACPI: PCI Interrupt Link [LNKG] (IRQs 3 4 *5 6 7 10 12)
    [ 0.528737] ACPI: PCI Interrupt Link [LNKH] (IRQs 3 *4 5 6 7 10 12)
    [ 0.528831] vgaarb: device added: PCI:0000:00:02.0,decodes=io+mem,owns=io+mem,locks=none
    [ 0.528838] vgaarb: loaded
    [ 0.528839] vgaarb: bridge control possible 0000:00:02.0
    [ 0.528883] PCI: Using ACPI for IRQ routing
    [ 0.530787] PCI: pci_cache_line_size set to 64 bytes
    [ 0.530797] pci 0000:00:04.0: no compatible bridge window for [mem 0xfed98000-0xfed9ffff 64bit]
    [ 0.530873] reserve RAM buffer: 000000000009f000 - 000000000009ffff
    [ 0.530876] reserve RAM buffer: 0000000040004000 - 0000000043ffffff
    [ 0.530879] reserve RAM buffer: 00000000d97e5000 - 00000000dbffffff
    [ 0.530891] reserve RAM buffer: 00000000d9dfe000 - 00000000dbffffff
    [ 0.530903] reserve RAM buffer: 00000000d9e06000 - 00000000dbffffff
    [ 0.530914] reserve RAM buffer: 00000000d9f64000 - 00000000dbffffff
    [ 0.530925] reserve RAM buffer: 00000000d9fa7000 - 00000000dbffffff
    [ 0.530936] reserve RAM buffer: 00000000d9fb0000 - 00000000dbffffff
    [ 0.530946] reserve RAM buffer: 00000000d9fd1000 - 00000000dbffffff
    [ 0.530956] reserve RAM buffer: 00000000d9fea000 - 00000000dbffffff
    [ 0.530966] reserve RAM buffer: 00000000d9ff8000 - 00000000dbffffff
    [ 0.530975] reserve RAM buffer: 00000000da008000 - 00000000dbffffff
    [ 0.530984] reserve RAM buffer: 00000000da014000 - 00000000dbffffff
    [ 0.530993] reserve RAM buffer: 00000000da037000 - 00000000dbffffff
    [ 0.531001] reserve RAM buffer: 00000000da04d000 - 00000000dbffffff
    [ 0.531008] reserve RAM buffer: 00000000da060000 - 00000000dbffffff
    [ 0.531015] reserve RAM buffer: 00000000da09a000 - 00000000dbffffff
    [ 0.531022] reserve RAM buffer: 00000000da09c000 - 00000000dbffffff
    [ 0.531028] reserve RAM buffer: 00000000da09f000 - 00000000dbffffff
    [ 0.531033] reserve RAM buffer: 00000000da0b9000 - 00000000dbffffff
    [ 0.531038] reserve RAM buffer: 00000000da8e3000 - 00000000dbffffff
    [ 0.531042] reserve RAM buffer: 00000000dad35000 - 00000000dbffffff
    [ 0.531045] reserve RAM buffer: 00000000db000000 - 00000000dbffffff
    [ 0.531048] reserve RAM buffer: 000000011f200000 - 000000011fffffff
    [ 0.531151] NetLabel: Initializing
    [ 0.531153] NetLabel: domain hash size = 128
    [ 0.531155] NetLabel: protocols = UNLABELED CIPSOv4
    [ 0.531169] NetLabel: unlabeled traffic allowed by default
    [ 0.531194] hpet0: at MMIO 0xfed00000, IRQs 2, 8, 0, 0, 0, 0, 0, 0
    [ 0.531202] hpet0: 8 comparators, 64-bit 14.318180 MHz counter
    [ 0.533219] Switching to clocksource hpet
    [ 0.539356] pnp: PnP ACPI init
    [ 0.539371] ACPI: bus type pnp registered
    [ 0.539727] pnp 00:00: [bus 00-3e]
    [ 0.539735] pnp 00:00: [io 0x0000-0x0cf7 window]
    [ 0.539737] pnp 00:00: [io 0x0cf8-0x0cff]
    [ 0.539739] pnp 00:00: [io 0x0d00-0xffff window]
    [ 0.539742] pnp 00:00: [mem 0x000a0000-0x000bffff window]
    [ 0.539744] pnp 00:00: [mem 0x000c0000-0x000c3fff window]
    [ 0.539747] pnp 00:00: [mem 0x000c4000-0x000c7fff window]
    [ 0.539749] pnp 00:00: [mem 0x000c8000-0x000cbfff window]
    [ 0.539751] pnp 00:00: [mem 0x000cc000-0x000cffff window]
    [ 0.539754] pnp 00:00: [mem 0x000d0000-0x000d3fff window]
    [ 0.539756] pnp 00:00: [mem 0x000d4000-0x000d7fff window]
    [ 0.539759] pnp 00:00: [mem 0x000d8000-0x000dbfff window]
    [ 0.539761] pnp 00:00: [mem 0x000dc000-0x000dffff window]
    [ 0.539763] pnp 00:00: [mem 0x000e0000-0x000e3fff window]
    [ 0.539766] pnp 00:00: [mem 0x000e4000-0x000e7fff window]
    [ 0.539768] pnp 00:00: [mem 0x000e8000-0x000ebfff window]
    [ 0.539770] pnp 00:00: [mem 0x000ec000-0x000effff window]
    [ 0.539773] pnp 00:00: [mem 0x000f0000-0x000fffff window]
    [ 0.539775] pnp 00:00: [mem 0xdfe00000-0xfeafffff window]
    [ 0.539777] pnp 00:00: [mem 0x00010000-0x0001ffff window]
    [ 0.539852] pnp 00:00: Plug and Play ACPI device, IDs PNP0a08 PNP0a03 (active)
    [ 0.539883] pnp 00:01: [mem 0xfed40000-0xfed44fff]
    [ 0.539934] system 00:01: [mem 0xfed40000-0xfed44fff] has been reserved
    [ 0.539938] system 00:01: Plug and Play ACPI device, IDs PNP0c01 (active)
    [ 0.540008] pnp 00:02: [io 0x0000-0x001f]
    [ 0.540010] pnp 00:02: [io 0x0081-0x0091]
    [ 0.540012] pnp 00:02: [io 0x0093-0x009f]
    [ 0.540014] pnp 00:02: [io 0x00c0-0x00df]
    [ 0.540016] pnp 00:02: [dma 4]
    [ 0.540049] pnp 00:02: Plug and Play ACPI device, IDs PNP0200 (active)
    [ 0.540058] pnp 00:03: [mem 0xff000000-0xffffffff]
    [ 0.540087] pnp 00:03: Plug and Play ACPI device, IDs INT0800 (active)
    [ 0.540186] pnp 00:04: [mem 0xfed00000-0xfed003ff]
    [ 0.540219] pnp 00:04: Plug and Play ACPI device, IDs PNP0103 (active)
    [ 0.540233] pnp 00:05: [io 0x002e-0x002f]
    [ 0.540235] pnp 00:05: [io 0x004e-0x004f]
    [ 0.540237] pnp 00:05: [io 0x0061]
    [ 0.540239] pnp 00:05: [io 0x0063]
    [ 0.540241] pnp 00:05: [io 0x0065]
    [ 0.540243] pnp 00:05: [io 0x0067]
    [ 0.540245] pnp 00:05: [io 0x0070]
    [ 0.540246] pnp 00:05: [io 0x0080]
    [ 0.540248] pnp 00:05: [io 0x0092]
    [ 0.540250] pnp 00:05: [io 0x00b2-0x00b3]
    [ 0.540252] pnp 00:05: [io 0x0680-0x069f]
    [ 0.540254] pnp 00:05: [io 0x0200-0x020f]
    [ 0.540256] pnp 00:05: [io 0xffff]
    [ 0.540258] pnp 00:05: [io 0xffff]
    [ 0.540260] pnp 00:05: [io 0x0400-0x0453]
    [ 0.540264] pnp 00:05: [io 0x0458-0x047f]
    [ 0.540266] pnp 00:05: [io 0x0500-0x057f]
    [ 0.540268] pnp 00:05: [io 0x164e-0x164f]
    [ 0.540315] system 00:05: [io 0x0680-0x069f] has been reserved
    [ 0.540318] system 00:05: [io 0x0200-0x020f] has been reserved
    [ 0.540320] system 00:05: [io 0xffff] has been reserved
    [ 0.540323] system 00:05: [io 0xffff] has been reserved
    [ 0.540326] system 00:05: [io 0x0400-0x0453] has been reserved
    [ 0.540328] system 00:05: [io 0x0458-0x047f] has been reserved
    [ 0.540331] system 00:05: [io 0x0500-0x057f] has been reserved
    [ 0.540334] system 00:05: [io 0x164e-0x164f] has been reserved
    [ 0.540338] system 00:05: Plug and Play ACPI device, IDs PNP0c02 (active)
    [ 0.540348] pnp 00:06: [io 0x0070-0x0077]
    [ 0.540362] pnp 00:06: [irq 8]
    [ 0.540395] pnp 00:06: Plug and Play ACPI device, IDs PNP0b00 (active)
    [ 0.540427] pnp 00:07: [io 0x0454-0x0457]
    [ 0.540471] system 00:07: [io 0x0454-0x0457] has been reserved
    [ 0.540474] system 00:07: Plug and Play ACPI device, IDs INT3f0d PNP0c02 (active)
    [ 0.540502] pnp 00:08: [io 0x0010-0x001f]
    [ 0.540504] pnp 00:08: [io 0x0022-0x003f]
    [ 0.540506] pnp 00:08: [io 0x0044-0x005f]
    [ 0.540508] pnp 00:08: [io 0x0072-0x007f]
    [ 0.540510] pnp 00:08: [io 0x0080]
    [ 0.540512] pnp 00:08: [io 0x0084-0x0086]
    [ 0.540514] pnp 00:08: [io 0x0088]
    [ 0.540516] pnp 00:08: [io 0x008c-0x008e]
    [ 0.540518] pnp 00:08: [io 0x0090-0x009f]
    [ 0.540520] pnp 00:08: [io 0x00a2-0x00bf]
    [ 0.540522] pnp 00:08: [io 0x00e0-0x00ef]
    [ 0.540524] pnp 00:08: [io 0x04d0-0x04d1]
    [ 0.540571] system 00:08: [io 0x04d0-0x04d1] has been reserved
    [ 0.540575] system 00:08: Plug and Play ACPI device, IDs PNP0c02 (active)
    [ 0.540584] pnp 00:09: [io 0x00f0-0x00ff]
    [ 0.540593] pnp 00:09: [irq 13]
    [ 0.540627] pnp 00:09: Plug and Play ACPI device, IDs PNP0c04 (active)
    [ 0.540680] pnp 00:0a: [irq 12]
    [ 0.540716] pnp 00:0a: Plug and Play ACPI device, IDs ETD0105 SYN0a00 SYN0002 PNP0f03 PNP0f13 PNP0f12 (active)
    [ 0.540743] pnp 00:0b: [io 0x0060]
    [ 0.540745] pnp 00:0b: [io 0x0064]
    [ 0.540752] pnp 00:0b: [irq 1]
    [ 0.540788] pnp 00:0b: Plug and Play ACPI device, IDs PNP0303 PNP030b (active)
    [ 0.541018] pnp 00:0c: [mem 0xfed1c000-0xfed1ffff]
    [ 0.541020] pnp 00:0c: [mem 0xfed10000-0xfed17fff]
    [ 0.541022] pnp 00:0c: [mem 0xfed18000-0xfed18fff]
    [ 0.541024] pnp 00:0c: [mem 0xfed19000-0xfed19fff]
    [ 0.541027] pnp 00:0c: [mem 0xf8000000-0xfbffffff]
    [ 0.541029] pnp 00:0c: [mem 0xfed20000-0xfed3ffff]
    [ 0.541031] pnp 00:0c: [mem 0xfed90000-0xfed93fff]
    [ 0.541033] pnp 00:0c: [mem 0xfed45000-0xfed8ffff]
    [ 0.541035] pnp 00:0c: [mem 0xff000000-0xffffffff]
    [ 0.541038] pnp 00:0c: [mem 0xfee00000-0xfeefffff]
    [ 0.541040] pnp 00:0c: [mem 0xdfe00000-0xdfe00fff]
    [ 0.541103] system 00:0c: [mem 0xfed1c000-0xfed1ffff] has been reserved
    [ 0.541106] system 00:0c: [mem 0xfed10000-0xfed17fff] has been reserved
    [ 0.541109] system 00:0c: [mem 0xfed18000-0xfed18fff] has been reserved
    [ 0.541112] system 00:0c: [mem 0xfed19000-0xfed19fff] has been reserved
    [ 0.541116] system 00:0c: [mem 0xf8000000-0xfbffffff] has been reserved
    [ 0.541119] system 00:0c: [mem 0xfed20000-0xfed3ffff] has been reserved
    [ 0.541122] system 00:0c: [mem 0xfed90000-0xfed93fff] has been reserved
    [ 0.541125] system 00:0c: [mem 0xfed45000-0xfed8ffff] has been reserved
    [ 0.541128] system 00:0c: [mem 0xff000000-0xffffffff] has been reserved
    [ 0.541131] system 00:0c: [mem 0xfee00000-0xfeefffff] could not be reserved
    [ 0.541134] system 00:0c: [mem 0xdfe00000-0xdfe00fff] has been reserved
    [ 0.541138] system 00:0c: Plug and Play ACPI device, IDs PNP0c02 (active)
    [ 0.541211] pnp 00:0d: [mem 0xdfe00000-0xdfe00fff]
    [ 0.541274] system 00:0d: [mem 0xdfe00000-0xdfe00fff] has been reserved
    [ 0.541278] system 00:0d: Plug and Play ACPI device, IDs PNP0c02 (active)
    [ 0.541430] pnp 00:0e: [mem 0x20000000-0x201fffff]
    [ 0.541433] pnp 00:0e: [mem 0x40004000-0x40004fff]
    [ 0.541495] system 00:0e: [mem 0x20000000-0x201fffff] has been reserved
    [ 0.541497] system 00:0e: [mem 0x40004000-0x40004fff] has been reserved
    [ 0.541501] system 00:0e: Plug and Play ACPI device, IDs PNP0c01 (active)
    [ 0.541534] pnp: PnP ACPI: found 15 devices
    [ 0.541536] ACPI: ACPI bus type pnp unregistered
    [ 0.548333] pci 0000:00:04.0: BAR 0: assigned [mem 0xdfe08000-0xdfe0ffff 64bit]
    [ 0.548340] pci 0000:00:1c.0: PCI bridge to [bus 01-01]
    [ 0.548357] pci 0000:00:1c.1: PCI bridge to [bus 02-02]
    [ 0.548364] pci 0000:00:1c.1: bridge window [mem 0xf7c00000-0xf7cfffff]
    [ 0.548408] pci_bus 0000:00: resource 4 [io 0x0000-0x0cf7]
    [ 0.548411] pci_bus 0000:00: resource 5 [io 0x0d00-0xffff]
    [ 0.548413] pci_bus 0000:00: resource 6 [mem 0x000a0000-0x000bffff]
    [ 0.548416] pci_bus 0000:00: resource 7 [mem 0x000d0000-0x000d3fff]
    [ 0.548418] pci_bus 0000:00: resource 8 [mem 0x000d4000-0x000d7fff]
    [ 0.548421] pci_bus 0000:00: resource 9 [mem 0x000d8000-0x000dbfff]
    [ 0.548424] pci_bus 0000:00: resource 10 [mem 0x000dc000-0x000dffff]
    [ 0.548426] pci_bus 0000:00: resource 11 [mem 0xdfe00000-0xfeafffff]
    [ 0.548429] pci_bus 0000:02: resource 1 [mem 0xf7c00000-0xf7cfffff]
    [ 0.548474] NET: Registered protocol family 2
    [ 0.548608] IP route cache hash table entries: 131072 (order: 8, 1048576 bytes)
    [ 0.549403] TCP established hash table entries: 524288 (order: 11, 8388608 bytes)
    [ 0.550900] TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
    [ 0.551049] TCP: Hash tables configured (established 524288 bind 65536)
    [ 0.551052] TCP: reno registered
    [ 0.551067] UDP hash table entries: 2048 (order: 4, 65536 bytes)
    [ 0.551086] UDP-Lite hash table entries: 2048 (order: 4, 65536 bytes)
    [ 0.551175] NET: Registered protocol family 1
    [ 0.551191] pci 0000:00:02.0: Boot video device
    [ 0.586597] PCI: CLS 64 bytes, default 64
    [ 0.586642] Unpacking initramfs...
    [ 0.718182] Freeing initrd memory: 5428k freed
    [ 0.718943] PCI-DMA: Using software bounce buffering for IO (SWIOTLB)
    [ 0.718947] Placing 64MB software IO TLB between ffff8800ca792000 - ffff8800ce792000
    [ 0.718950] software IO TLB at phys 0xca792000 - 0xce792000
    [ 0.719520] audit: initializing netlink socket (disabled)
    [ 0.719531] type=2000 audit(1342675392.609:1): initialized
    [ 0.719886] HugeTLB registered 2 MB page size, pre-allocated 0 pages
    [ 0.721809] VFS: Disk quotas dquot_6.5.2
    [ 0.721861] Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
    [ 0.721987] msgmni has been set to 7684
    [ 0.722183] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
    [ 0.722218] io scheduler noop registered (default)
    [ 0.722221] io scheduler deadline registered
    [ 0.722279] io scheduler cfq registered
    [ 0.722575] efifb: probing for efifb
    [ 0.725055] efifb: framebuffer at 0xe0000000, mapped to 0xffffc9000a200000, using 3072k, total 3072k
    [ 0.725058] efifb: mode is 1024x768x32, linelength=4096, pages=1
    [ 0.725060] efifb: scrolling: redraw
    [ 0.725063] efifb: Truecolor: size=8:8:8:8, shift=24:16:8:0
    [ 0.727405] Console: switching to colour frame buffer device 128x48
    [ 0.729621] fb0: EFI VGA frame buffer device
    [ 0.729628] intel_idle: does not run on family 6 model 58
    [ 0.729660] GHES: HEST is not enabled!
    [ 0.729740] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
    [ 0.730316] Linux agpgart interface v0.103
    [ 0.730401] i8042: PNP: PS/2 Controller [PNP0303:PS2K,PNP0f03:PS2M] at 0x60,0x64 irq 1,12
    [ 0.732007] i8042: Detected active multiplexing controller, rev 1.1
    [ 0.732785] serio: i8042 KBD port at 0x60,0x64 irq 1
    [ 0.732815] serio: i8042 AUX0 port at 0x60,0x64 irq 12
    [ 0.732839] serio: i8042 AUX1 port at 0x60,0x64 irq 12
    [ 0.732863] serio: i8042 AUX2 port at 0x60,0x64 irq 12
    [ 0.732884] serio: i8042 AUX3 port at 0x60,0x64 irq 12
    [ 0.732989] mousedev: PS/2 mouse device common for all mice
    [ 0.733073] rtc_cmos 00:06: RTC can wake from S4
    [ 0.733238] rtc_cmos 00:06: rtc core: registered rtc_cmos as rtc0
    [ 0.733268] rtc0: alarms up to one month, y3k, 242 bytes nvram, hpet irqs
    [ 0.733278] cpuidle: using governor ladder
    [ 0.733280] cpuidle: using governor menu
    [ 0.733411] TCP: cubic registered
    [ 0.733520] NET: Registered protocol family 10
    [ 0.733728] NET: Registered protocol family 17
    [ 0.733733] Registering the dns_resolver key type
    [ 0.733877] PM: Hibernation image not present or could not be loaded.
    [ 0.733883] registered taskstats version 1
    [ 0.734299] rtc_cmos 00:06: setting system clock to 2012-07-19 05:23:13 UTC (1342675393)
    [ 0.734449] Initializing network drop monitor service
    [ 0.736068] Freeing unused kernel memory: 740k freed
    [ 0.736186] Write protecting the kernel read-only data: 8192k
    [ 0.741922] Freeing unused kernel memory: 1588k freed
    [ 0.744508] Freeing unused kernel memory: 640k freed
    [ 0.752904] systemd-udevd[48]: starting version 186
    [ 0.755540] SCSI subsystem initialized
    [ 0.757022] libata version 3.00 loaded.
    [ 0.757753] ahci 0000:00:1f.2: version 3.0
    [ 0.757857] ahci 0000:00:1f.2: irq 42 for MSI/MSI-X
    [ 0.757916] ahci 0000:00:1f.2: AHCI 0001.0300 32 slots 6 ports 6 Gbps 0x1 impl SATA mode
    [ 0.757920] ahci 0000:00:1f.2: flags: 64bit ncq pm led clo pio slum part ems apst
    [ 0.757927] ahci 0000:00:1f.2: setting latency timer to 64
    [ 0.760754] scsi0 : ahci
    [ 0.760973] scsi1 : ahci
    [ 0.761219] scsi2 : ahci
    [ 0.761696] scsi3 : ahci
    [ 0.761814] scsi4 : ahci
    [ 0.762047] scsi5 : ahci
    [ 0.762660] ata1: SATA max UDMA/133 abar m2048@0xf7d1e000 port 0xf7d1e100 irq 42
    [ 0.762664] ata2: DUMMY
    [ 0.762665] ata3: DUMMY
    [ 0.762667] ata4: DUMMY
    [ 0.762668] ata5: DUMMY
    [ 0.762670] ata6: DUMMY
    [ 0.766691] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input0
    [ 1.079319] ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
    [ 1.090674] ata1.00: ACPI cmd f5/00:00:00:00:00:a0 (SECURITY FREEZE LOCK) filtered out
    [ 1.090818] ata1.00: ACPI cmd ef/10:06:00:00:00:a0 (SET FEATURES) succeeded
    [ 1.090822] ata1.00: ACPI cmd ef/10:03:00:00:00:a0 (SET FEATURES) filtered out
    [ 1.101189] ata1.00: ATA-8: ADATA XM11 128GB, 5.0.1, max UDMA/133
    [ 1.101208] ata1.00: 250069680 sectors, multi 16: LBA48 NCQ (depth 31/32), AA
    [ 1.110592] ata1.00: ACPI cmd f5/00:00:00:00:00:a0 (SECURITY FREEZE LOCK) filtered out
    [ 1.110759] ata1.00: ACPI cmd ef/10:06:00:00:00:a0 (SET FEATURES) succeeded
    [ 1.110763] ata1.00: ACPI cmd ef/10:03:00:00:00:a0 (SET FEATURES) filtered out
    [ 1.121163] ata1.00: configured for UDMA/133
    [ 1.121291] scsi 0:0:0:0: Direct-Access ATA ADATA XM11 128GB 5.0. PQ: 0 ANSI: 5
    [ 1.123017] sd 0:0:0:0: [sda] 250069680 512-byte logical blocks: (128 GB/119 GiB)
    [ 1.123090] sd 0:0:0:0: [sda] Write Protect is off
    [ 1.123095] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
    [ 1.123119] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
    [ 1.123778] usbcore: registered new interface driver usbfs
    [ 1.123805] usbcore: registered new interface driver hub
    [ 1.123854] usbcore: registered new device driver usb
    [ 1.124316] sda: sda1 sda2 sda3
    [ 1.124612] sd 0:0:0:0: [sda] Attached SCSI disk
    [ 1.125369] xhci_hcd 0000:00:14.0: setting latency timer to 64
    [ 1.125376] xhci_hcd 0000:00:14.0: xHCI Host Controller
    [ 1.125423] xhci_hcd 0000:00:14.0: new USB bus registered, assigned bus number 1
    [ 1.125529] xhci_hcd 0000:00:14.0: cache line size of 64 is not supported
    [ 1.125550] xhci_hcd 0000:00:14.0: irq 16, io mem 0xf7d00000
    [ 1.125619] xhci_hcd 0000:00:14.0: irq 43 for MSI/MSI-X
    [ 1.125765] xHCI xhci_add_endpoint called for root hub
    [ 1.125769] xHCI xhci_check_bandwidth called for root hub
    [ 1.125819] hub 1-0:1.0: USB hub found
    [ 1.125832] hub 1-0:1.0: 4 ports detected
    [ 1.126030] xhci_hcd 0000:00:14.0: xHCI Host Controller
    [ 1.126038] xhci_hcd 0000:00:14.0: new USB bus registered, assigned bus number 2
    [ 1.126165] xHCI xhci_add_endpoint called for root hub
    [ 1.126169] xHCI xhci_check_bandwidth called for root hub
    [ 1.126239] hub 2-0:1.0: USB hub found
    [ 1.126251] hub 2-0:1.0: 4 ports detected
    [ 1.129851] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
    [ 1.129926] ehci_hcd 0000:00:1a.0: setting latency timer to 64
    [ 1.129933] ehci_hcd 0000:00:1a.0: EHCI Host Controller
    [ 1.129954] ehci_hcd 0000:00:1a.0: new USB bus registered, assigned bus number 3
    [ 1.129988] ehci_hcd 0000:00:1a.0: debug port 2
    [ 1.133867] ehci_hcd 0000:00:1a.0: cache line size of 64 is not supported
    [ 1.133883] ehci_hcd 0000:00:1a.0: irq 16, io mem 0xf7d20000
    [ 1.142574] ehci_hcd 0000:00:1a.0: USB 2.0 started, EHCI 1.00
    [ 1.142727] hub 3-0:1.0: USB hub found
    [ 1.142731] hub 3-0:1.0: 2 ports detected
    [ 1.142859] ehci_hcd 0000:00:1d.0: setting latency timer to 64
    [ 1.142866] ehci_hcd 0000:00:1d.0: EHCI Host Controller
    [ 1.142879] ehci_hcd 0000:00:1d.0: new USB bus registered, assigned bus number 4
    [ 1.142914] ehci_hcd 0000:00:1d.0: debug port 2
    [ 1.146795] ehci_hcd 0000:00:1d.0: cache line size of 64 is not supported
    [ 1.146814] ehci_hcd 0000:00:1d.0: irq 23, io mem 0xf7d1f000
    [ 1.155902] ehci_hcd 0000:00:1d.0: USB 2.0 started, EHCI 1.00
    [ 1.156064] hub 4-0:1.0: USB hub found
    [ 1.156069] hub 4-0:1.0: 2 ports detected
    [ 1.161829] agpgart-intel 0000:00:00.0: Intel Ivybridge Chipset
    [ 1.162274] agpgart-intel 0000:00:00.0: detected gtt size: 2097152K total, 262144K mappable
    [ 1.164964] agpgart-intel 0000:00:00.0: detected 65536K stolen memory
    [ 1.165093] agpgart-intel 0000:00:00.0: AGP aperture is 256M @ 0xe0000000
    [ 1.167496] [drm] Initialized drm 1.1.0 20060810
    [ 1.168381] input: Lid Switch as /devices/LNXSYSTM:00/device:00/PNP0C0D:00/input/input1
    [ 1.179358] ACPI: Lid Switch [LID]
    [ 1.179416] input: Power Button as /devices/LNXSYSTM:00/device:00/PNP0C0C:00/input/input2
    [ 1.179422] ACPI: Power Button [PWRB]
    [ 1.179469] input: Sleep Button as /devices/LNXSYSTM:00/device:00/PNP0C0E:00/input/input3
    [ 1.179474] ACPI: Sleep Button [SLPB]
    [ 1.183098] i915 0000:00:02.0: setting latency timer to 64
    [ 1.398826] mtrr: type mismatch for e0000000,10000000 old: write-back new: write-combining
    [ 1.398830] [drm] MTRR allocation failed. Graphics performance may suffer.
    [ 1.399105] i915 0000:00:02.0: irq 44 for MSI/MSI-X
    [ 1.399167] [drm] Supports vblank timestamp caching Rev 1 (10.10.2010).
    [ 1.399169] [drm] Driver supports precise vblank timestamp query.
    [ 1.399738] vgaarb: device changed decodes: PCI:0000:00:02.0,olddecodes=io+mem,decodes=io+mem:owns=io+mem
    [ 1.482168] usb 1-2: new high-speed USB device number 2 using xhci_hcd
    [ 1.499154] usb 1-2: ep 0x81 - rounding interval to 32768 microframes, ep desc says 0 microframes
    [ 1.499163] usb 1-2: ep 0x2 - rounding interval to 32768 microframes, ep desc says 0 microframes
    [ 1.605348] usb 3-1: new high-speed USB device number 2 using ehci_hcd
    [ 1.718541] Refined TSC clocksource calibration: 1696.146 MHz.
    [ 1.718545] Switching to clocksource tsc
    [ 1.729014] hub 3-1:1.0: USB hub found
    [ 1.729085] hub 3-1:1.0: 6 ports detected
    [ 1.835066] usb 4-1: new high-speed USB device number 2 using ehci_hcd
    [ 1.958735] hub 4-1:1.0: USB hub found
    [ 1.958810] hub 4-1:1.0: 6 ports detected
    [ 2.025002] usb 3-1.2: new high-speed USB device number 3 using ehci_hcd
    [ 2.224762] usb 4-1.5: new high-speed USB device number 3 using ehci_hcd
    [ 2.474462] usb 4-1.6: new full-speed USB device number 4 using ehci_hcd
    [ 2.667462] [drm] Enabling RC6 states: RC6 on, RC6p on, RC6pp off
    [ 3.173881] checking generic (e0000000 300000) vs hw (e0000000 10000000)
    [ 3.173885] fb: conflicting fb hw usage inteldrmfb vs EFI VGA - removing generic driver
    [ 3.173902] Console: switching to colour dummy device 80x25
    [ 3.175315] fbcon: inteldrmfb (fb0) is primary device
    [ 4.162812] Console: switching to colour frame buffer device 240x67
    [ 4.168648] fb0: inteldrmfb frame buffer device
    [ 4.168650] drm: registered panic notifier
    [ 4.170494] ACPI Warning: _BQC returned an invalid level (20120320/video-472)
    [ 4.170803] acpi device:35: registered as cooling_device0
    [ 4.171244] input: Video Bus as /devices/LNXSYSTM:00/device:00/PNP0A08:00/LNXVIDEO:00/input/input4
    [ 4.171252] ACPI: Video Device [GFX0] (multi-head: yes rom: no post: no)
    [ 4.171274] [drm] Initialized i915 1.6.0 20080730 for 0000:00:02.0 on minor 0
    [ 4.261463] device-mapper: uevent: version 1.0.3
    [ 4.261618] device-mapper: ioctl: 4.22.0-ioctl (2011-10-19) initialised: [email protected]
    [ 7.530172] EXT4-fs (dm-2): mounted filesystem with ordered data mode. Opts: (null)
    [ 7.671884] systemd-udevd[206]: starting version 186
    [ 7.701027] ACPI: Requesting acpi_cpufreq
    [ 7.708519] Monitor-Mwait will be used to enter C-1 state
    [ 7.708550] Monitor-Mwait will be used to enter C-2 state
    [ 7.708563] ACPI: acpi_idle registered with cpuidle
    [ 7.765552] ACPI: AC Adapter [AC0] (on-line)
    [ 7.792019] ACPI: Battery Slot [BAT0] (battery present)
    [ 7.842020] wmi: Mapper loaded
    [ 7.849215] thermal LNXTHERM:00: registered as thermal_zone0
    [ 7.849223] ACPI: Thermal Zone [THRM] (54 C)
    [ 7.856172] mei: module is from the staging directory, the quality is unknown, you have been warned.
    [ 7.856873] mei 0000:00:16.0: setting latency timer to 64
    [ 7.857061] mei 0000:00:16.0: irq 45 for MSI/MSI-X
    [ 7.867562] iTCO_vendor_support: vendor-support=0
    [ 7.870231] iTCO_wdt: Intel TCO WatchDog Timer Driver v1.07
    [ 7.870413] iTCO_wdt: Found a Panther Point TCO device (Version=2, TCOBASE=0x0460)
    [ 7.878227] iTCO_wdt: initialized. heartbeat=30 sec (nowayout=0)
    [ 7.880017] cfg80211: Calling CRDA to update world regulatory domain
    [ 7.887026] ACPI Warning: 0x000000000000f040-0x000000000000f05f SystemIO conflicts with Region \SMB0 1 (20120320/utaddress-251)
    [ 7.887035] ACPI Warning: 0x000000000000f040-0x000000000000f05f SystemIO conflicts with Region \_SB_.PCI0.SBUS.SMBI 2 (20120320/utaddress-251)
    [ 7.887041] ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver
    [ 7.890845] snd_hda_intel 0000:00:1b.0: irq 46 for MSI/MSI-X
    [ 7.895102] usbcore: registered new interface driver uas
    [ 7.897297] Initializing USB Mass Storage driver...
    [ 7.897383] scsi6 : usb-storage 1-2:1.0
    [ 7.897494] usbcore: registered new interface driver usb-storage
    [ 7.897496] USB Mass Storage support registered.
    [ 7.905414] input: PC Speaker as /devices/platform/pcspkr/input/input5
    [ 7.908378] Intel(R) Wireless WiFi Link AGN driver for Linux, in-tree:
    [ 7.908380] Copyright(c) 2003-2012 Intel Corporation
    [ 7.908463] iwlwifi 0000:02:00.0: pci_resource_len = 0x00002000
    [ 7.908465] iwlwifi 0000:02:00.0: pci_resource_base = ffffc900040c8000
    [ 7.908467] iwlwifi 0000:02:00.0: HW Revision ID = 0x24
    [ 7.908564] iwlwifi 0000:02:00.0: irq 47 for MSI/MSI-X
    [ 7.909834] Linux media interface: v0.10
    [ 7.912145] Linux video capture interface: v2.00
    [ 7.912309] rts5139: module is from the staging directory, the quality is unknown, you have been warned.
    [ 7.916365] scsi7 : SCSI emulation for RTS5139 USB card reader
    [ 7.924679] scsi 7:0:0:0: Direct-Access Generic- xD/SD/M.S. 1.00 PQ: 0 ANSI: 0 CCS
    [ 7.926600] uvcvideo: Found UVC 1.00 device USB2.0 HD UVC WebCam (04f2:b330)
    [ 7.927768] sd 7:0:0:0: [sdb] Attached SCSI removable disk
    [ 7.927991] Bluetooth: Core ver 2.16
    [ 7.928007] NET: Registered protocol family 31
    [ 7.928009] Bluetooth: HCI device and connection manager initialized
    [ 7.928012] Bluetooth: HCI socket layer initialized
    [ 7.928014] Bluetooth: L2CAP socket layer initialized
    [ 7.928025] Bluetooth: SCO socket layer initialized
    [ 7.929593] microcode: CPU0 sig=0x306a9, pf=0x10, revision=0x12
    [ 7.930401] usbcore: registered new interface driver rts5139
    [ 7.932134] usbcore: registered new interface driver btusb
    [ 7.938575] input: USB2.0 HD UVC WebCam as /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.5/4-1.5:1.0/input/input6
    [ 7.939734] usbcore: registered new interface driver uvcvideo
    [ 7.939737] USB Video Class driver (1.1.1)
    [ 7.959022] pci_hotplug: PCI Hot Plug PCI Core version: 0.5
    [ 7.960155] asus_wmi: ASUS WMI generic driver loaded
    [ 7.961792] asus_wmi: Initialization: 0x1
    [ 7.961840] asus_wmi: BIOS WMI version: 7.9
    [ 7.962148] asus_wmi: SFUN value: 0x4a2877
    [ 7.963015] asus_wmi: Can't find DSTS
    [ 7.968179] iwlwifi 0000:02:00.0: loaded firmware version 18.168.6.1
    [ 7.968413] iwlwifi 0000:02:

    Hi, I bought the UX32VD a few weeks ago. Most of the steps, mentioned in the article about the UX31A apply to the UX32VD too. I don't know what your problems are. All the steps are explained.
    [ 8.039202] asus_wmi: Can't find DSTS
    Just patch the kernel with the mentioned fix, or use the dkms variant. This will fix the can't find DSTS issue. After that, the asus-nb-wmi (or sth. like that) module will be loaded successfully, which makes most of the function keys work (except the screen brightness keys). The only thing remaining is to use the supplied hackarounds to be able to change the screenbrightness.
    After these steps, I created a .Xmodmap to remap the automatic kbd. backlight key and the touchpad disable key to XF86MonBrightnessDown (or so .. can't remember the exact name) and XF86MonBrightnessUp and respectively mapped the shortcuts with xfce4-keyboard-settings (XF86MonBrightnessDown to the command backlight down, XF86MonBrightnessUp to backlight up). Unfortunately, sometimes this is a little bit buggy. The scan codes change randomly on some reboots, eg: one time it gets recognized as XF86MonBrightnessUp, and a few keypresses later as something different.
    Hope they fix this issue with the 3.5 kernel, and eventually get the actual screenbrightness buttons to work.

  • GS1 barcode decode Function module issue

    We are facing an issue with LE_EAN128_DECODE standard Function module .
    standard gs1 barcode uses modulo 13 calculation method to decode check digit where as standard sap uses modulo 10 .
    standard function module LE_EAN128_DECODE uses modulo 10 method to calculate check digit .
    Is there a way to decode gs1 barccode in standard sap .
    Is there a standard function module in sap which uses modulo 13 method to decode gs1 barcodes in sap.
    Is there something we need to do in the SPRO configuration settings to enable this.

    Hi
    In FM check on which fields you have written delta logic, data will populate if we have changes to that field.
    we have some good documents on step by step of creating FM based generic extractors. check if you miss any steps
    http://explore-sapbw.blogspot.in/p/sdn-articles-extraction.html
    Regards,
    Venkatesh

  • Why can't I run a powershell file I created from a powershell function

    Ok so admittedly I am still learning a lot about powershell so this may have a very easy explanation/solution
    So I have this script file and this is it in its entirety 
    function Add-DriveFunctions($Provider, $Path)
    foreach ($Drive in $Provider.Drives)
    if ((Get-Command | where Name -eq "$($Drive.Name):") -eq $null)
    [String]"function $($Drive.Name):() {Set-Location $($Drive.Name):}" | Out-File $Path -Append
    $Path = C:\Temp\test.ps1
    """Adding Drives""" | Out-File $Path
    foreach ($Provider in Get-PSProvider)
    Add-DriveFunctions -Provider $Provider -Path $Path
    C:\Temp\test.ps1
    When I run it it happily creates the ps1 file whose content looks like this
     "Adding drives"
    function Alias:() {Set-Location Alias:}
    function Env:() {Set-Location Env:}
    function Function:() {Set-Location Function:}
    function HKLM:() {Set-Location HKLM:}
    function HKCU:() {Set-Location HKCU:}
    function Variable:() {Set-Location Variable:}
    But the last line to actually load and run the ps1 file does nothing
    even calling C:\Temp\test.ps1 does nothing
    but if I load the file into ISE and run it from there
    it works.
    Unless I'm completely missing something I would think being able to call other ps1 files from other ps1 files or the command line would be a pretty important part of powershells flexibility.
    So if anyone could tell me why in this case it does not work I would greatly appreciate that
    Cheers,
    Quidquid latine dictum sit, altum videtur

    Ok i'm a little confused 
    in ISE if I write a ps1 file and i have just a function in it not anything calling that function when i run or debug it loads that functions definition into the current session and then from my console i can access my function. so Is that what the . is supposed
    to do?
    When i tried the . I get this
    The term '.C:\Temp\test.ps1' is not recognized as the name of a cmdlet, function, script file, or operable 
    program. Check the spelling of the name, or if a path was included, verify that the path is correct and try 
    again.At C:\Users\rjs012978\Downloads\FunctionTest.ps1:20 char:1
    + .C:\Temp\test.ps1
    + ~~~~~~~~~~~~~~~~~
        + CategoryInfo          : ObjectNotFound: (.C:\Temp\test.ps1:String) [], CommandNotFoundException
        + FullyQualifiedErrorId : CommandNotFoundException
    Also I know i can do that with the mono letter drive but working on a network over half the alphabet is taken up by my actual network mapped drives.
    And the provider i'm writing is connecting to multiple Space IDs that i'm making into my drives so I would quickly run out of letters.
    proof of concept i know what i'm doing works if I do it manually
    I know it's kind of silly but for me the amount of time i spend in powershell especially administering SCCM, the registry and AD being able to just type hklm: and hitting enter is a huge time save over the long haul than typing cd hklm: even though it's
    just 3 more characters
    Quidquid latine dictum sit, altum videtur

  • JNI Multithreading/Callback Function Design Issues

    Ok, I have been working on this for quite some time now and I simply can not figure it out. So any ideas are more than welcome. :)
    I have Java code that uses a DLL that I created in C++. My C++ code links with a library made by a 3rd party (don't have access to the source or anything). The 3rd party's code creates a new thread and calls a callback function that I define in my C++ code. This callback is called continuously until I perform some other code to stop it. Now for the tricky part. In my callback function I need to pass some data back in Java. Here is where my design falls apart. Since the callback function is technically part of the 3rd party's thread, I have to call AttachCurrentThread() in the callback to get the JNIEnv pointer in order to ultimately call my desired Java method. The problem is that my Java method (or even the C++ callback function) are only invoked if I do a sleep() in my C++ code after I start the 3rd party code which creates the thread. If I do a Thread.sleep() in Java after I call the native function code, it just sleeps and the callbacks never get called. It appears as though the thread dies as soon as I return from my C++ code.
    So now I am stuck. I have tried creating a thread in Java which simply calls the C++ code and the C++ code just loops waiting for an updated flag, however, this causes the 3rd party's thread creation code to fail (not quite sure why). However, even if their code worked, I'm not convinced this is even proper design. I apologize if this is simply a threading design principle as my multithreading programming techniques are a bit rusty and I've never done a multithreaded application this complex (this is a simplified version, but the idea is the same).
    I welcome any suggestions or even documentation that may lead me in the right direction. Thanks in advance.

    I have a similar issue.
    from java I call a dll I wrote, which calls a third party scanner dll (cyber.dll). Everything works ok, except, when an event in the scanner occurs, it calls the call backin my dll, which calls the callback in java, which kills the vm with an access violation. If I execute the call back to java from a c method which I just called from java, it works, but if it gets called outside of the java execution of the native code, it fails.
    I havent done anything with treads or syncronisation. Do I need to do this AttachCurrentThread stuff? If so, where do I get the _jvm handle as Im not starting the vm from c?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Need help converting MS SQL query into Oracle, Function 'WHERE' issues

    SELECT PERS_NBR, PAY_ID, PAY_CODE, LOGICAL_DATE, LOGICAL_DATE AS END_DATE, PCNAMES + REPLICATE(',', 39 - (LEN(PCNAMES) - LEN(REPLACE(PCNAMES, ',', ''))))
    AS PC_NAMES_FINAL
    FROM (SELECT DISTINCT A.PAY_ID, A.PAY_CODE, A.PERS_NBR, A.LOGICAL_DATE, PCNAMES = substring
    ((SELECT TOP 10 ',' + PC_NAME + ',' + SUBSTRING(CAST(B.VALUE AS VARCHAR), 0, LEN(CAST(B.VALUE AS VARCHAR)) - 2)
    FROM T_PAY_CAT_RECORD B
    WHERE B.PERS_NBR = A.PERS_NBR AND
    B.LOGICAL_DATE = A.LOGICAL_DATE FOR XML path(''), elements), 2, 500)
    FROM T_PAY_CAT_RECORD A, T_PERSON P
    WHERE A.PERS_NBR = P.NBR) FINAL
    Edited by: 919969 on Mar 9, 2012 3:45 PM

    Hello
    Like any language you need to understand what the messages coming from the syntax check are saying...
    XXXX> SELECT PERS_NBR,
      2          PAY_ID,
      3          PAY_CODE,
      4          LOGICAL_DATE,
      5          LOGICAL_DATE AS END_DATE,
      6          PCNAMES || LPAD(',', 39 - (LENGTH(PCNAMES) - NVL(LENGTH(REPLACE(PCNAMES,',')),0)),',') AS PC_NAMES_FINAL
      7    FROM  (
      8           SELECT  PAY_ID,
      9                   PAY_CODE,
    10                   PERS_NBR,
    11                   LOGICAL_DATE,
    12                   SUBSTR(
    13                          RTRIM(XMLAGG(XMLELEMENT(e,PC_NAME || ',' || SUBSTR(VALUE,1,LEN(VALUE) - 2),',').EXTRACT('//text()')),',') PCNAMES
    14                          2,
    15                          500
    16                         )
    17             FROM  (
    18                    SELECT  A.PAY_ID,
    19                            A.PAY_CODE,
    20                            A.PERS_NBR,
    21                            A.LOGICAL_DATE,
    22                            A.PC_NAME,
    23                            ROW_NUMBER() OVER(PARTITION BY A.PERS_NBR,A.LOGICAL_DATE ORDER BY 1) RN
    24                      FROM  T_PAY_CAT_RECORD A,
    25                            T_PERSON P
    26                      WHERE A.PERS_NBR = P.NBR
    27                   )
    28             WHERE RN <= 10
    29             GROUP BY PAY_ID,
    30                      PAY_CODE,
    31                      PERS_NBR,
    32                      LOGICAL_DATE
    33          ) FINAL
    34  /
                            RTRIM(XMLAGG(XMLELEMENT(e,PC_NAME || ',' || SUBSTR(VALUE,1,LEN(VALUE) - 2),',').EXTRACT('//text()')),',') PCNAMES
    ERROR at line 13:
    ORA-00907: missing right parenthesisIf you use something like SQL*Plus or SQL Developer, they will give you the error stack which will point you to the source of the problem.
    It's saying missing right parenthesis. Start by finding out if we've got all out matching brackets. Counting from the start of that statement i.e. SUBSTR on line 12, we have 7 open brackets and 6 close brackets. So there does appear to be a problem with brackets. However if we take a step back and look at lines 12 to 16, this is actually a single statement. It's a call to the SUBSTR function and within it it has calls to RTRIM, XMLAGG etc. For the statement as a whole there are the same number of left and right parenthesis so the problem is related to something else. Something that is leading the syntax check to think it has reached the end of a statement and hasn't found enough closing parethesis.
    The issue here appears to be that we have the token PCNAMES at the end of line 13 but syntactically that's not correct. We can't have that token there because it's appearing in the middle of a function call. PCTNAMES is actually a column alias but it's just in the wrong place. We need it to be an alias for the whole expression from line 12 to 16. So make the change and see what happens...
    XXXX> select PERS_NBR,
      2          PAY_ID,
      3          PAY_CODE,
      4          LOGICAL_DATE,
      5          LOGICAL_DATE AS END_DATE,
      6          PCNAMES || LPAD(',', 39 - (LENGTH(PCNAMES) - NVL(LENGTH(REPLACE(PCNAMES,',')),0)),',') AS PC_NAMES_FINAL
      7    FROM  (
      8           SELECT  PAY_ID,
      9                   PAY_CODE,
    10                   PERS_NBR,
    11                   LOGICAL_DATE,
    12                   SUBSTR(
    13                          RTRIM(XMLAGG(XMLELEMENT(e,PC_NAME || ',' || SUBSTR(VALUE,1,LEN(VALUE) - 2),',').EXTRACT('//text()')),',')
    14                          2,
    15                          500
    16                         ) PCNAMES
    17             FROM  (
    18                    SELECT  A.PAY_ID,
    19                            A.PAY_CODE,
    20                            A.PERS_NBR,
    21                            A.LOGICAL_DATE,
    22                            A.PC_NAME,
    23                            ROW_NUMBER() OVER(PARTITION BY A.PERS_NBR,A.LOGICAL_DATE ORDER BY 1) RN
    24                      FROM  T_PAY_CAT_RECORD A,
    25                            T_PERSON P
    26                      WHERE A.PERS_NBR = P.NBR
    27                   )
    28             WHERE RN <= 10
    29             GROUP BY PAY_ID,
    30                      PAY_CODE,
    31                      PERS_NBR,
    32                      LOGICAL_DATE
    33          ) FINAL
    34  /
                            2,
    ERROR at line 14:
    ORA-00907: missing right parenthesisNOw we've got a new error. Again it's saying we've got a missing parenthesis but this time on line 14. The issue here is that line 13 is a parameter to the SUBSTR function but there is no comma on the end. What we actually have at the moment is a line that looks like so
    RTRIM(XMLAGG(XMLELEMENT(e,PC_NAME || ',' || SUBSTR(VALUE,1,LEN(VALUE) - 2),',').EXTRACT('//text()')),',') 2,Which is just not formed correctly. We need a comma at the end of line 13 to state that this is the end of that line as a parameter.
    XXXX> select PERS_NBR,
      2          PAY_ID,
      3          PAY_CODE,
      4          LOGICAL_DATE,
      5          LOGICAL_DATE AS END_DATE,
      6          PCNAMES || LPAD(',', 39 - (LENGTH(PCNAMES) - NVL(LENGTH(REPLACE(PCNAMES,',')),0)),',') AS PC_NAMES_FINAL
      7    FROM  (
      8           SELECT  PAY_ID,
      9                   PAY_CODE,
    10                   PERS_NBR,
    11                   LOGICAL_DATE,
    12                   SUBSTR(
    13                          RTRIM(XMLAGG(XMLELEMENT(e,PC_NAME || ',' || SUBSTR(VALUE,1,LEN(VALUE) - 2),',').EXTRACT('//text()')),','),
    14                          2,
    15                          500
    16                         ) PCNAMES
    17             FROM  (
    18                    SELECT  A.PAY_ID,
    19                            A.PAY_CODE,
    20                            A.PERS_NBR,
    21                            A.LOGICAL_DATE,
    22                            A.PC_NAME,
    23                            ROW_NUMBER() OVER(PARTITION BY A.PERS_NBR,A.LOGICAL_DATE ORDER BY 1) RN
    24                      FROM  T_PAY_CAT_RECORD A,
    25                            T_PERSON P
    26                      WHERE A.PERS_NBR = P.NBR
    27                   )
    28             WHERE RN <= 10
    29             GROUP BY PAY_ID,
    30                      PAY_CODE,
    31                      PERS_NBR,
    32                      LOGICAL_DATE
    33          ) FINAL
    34  /
                              T_PERSON P
    ERROR at line 25:
    ORA-00942: table or view does not existNow we have a new error but this time it's because I don't have the t_person table on my database. Syntactically the statement above is now correct so it should work on your system.
    HTH
    David
    Edited by: Bravid on Mar 12, 2012 10:20 AM

  • Using PowerShell Functions in t-SQL scripts

    experts,
    Can I use a power shell function that gets file size given file path by cross applying it to a table in SQL Server that holds file path of files?
    fileID    filepath
    1         L:\DemoWebPages\About.cshtml.txt
    2         L:\DemoWebPages\default.cshtml.txt.txt
    3         L:\DemoWebPages\Layout.cshtml.txt
    4         L:\DemoWebPages\Site.css.txt
    if the above if the table in SQL Server, can I cross apply a power shell function that gets the file size when file path is passed from the table above?
    Help Much Appreciated!
    ebro

    Make sure that you are running on the machine where you've full permission to access file and 
    Sample data
    create table filelist
    fileid int,
    path varchar(200))
    insert into filelist values(1,'c:\Demystifying tempdb whitepaper.pdf')
    insert into filelist values(2,'C:\Appleton Papers - 23 SQL DM - dani 6.28.13.pdf')
    Powershell Scripts:-
    Add-PSSnapin SqlServerProviderSnapin100 -ErrorAction silentlycontinue
    Add-PSSnapin SqlServerCmdletSnapin100 -ErrorAction silentlycontinue
    Function filesize
    param([String] $path)
    try {
    if(Test-Path $path)
    $size=(Get-Item $path).length/1024
    write-host "$path size is $size KB"
    catch [System.Exception] {
    write-host "File not found"
    $params = @{server='hqvd0026\kat';database='master'}
    $Srv = invoke-sqlcmd @params -Query "SELECT * from dbo.filelist"
    $srv
    foreach ($db in $Srv)
    filesize -path $db.path

  • Keyboard function Key issues

    So my Keyboard on my Macbook has had some issues over the past 6 months, so about 6 months ago it started muting the sound on my computer when I pressed certain keys like : enter, esc, P, /, \, 0 or ) and a few others, to fix it though i need to hold down the mute button stops the other keys from muting my sound so I just keep a weight on it, since I'm a student and have barely any money. but lately after I finally updated my OS to maverick I found the Function keys option and clicked it, on, now it uses that App Expose function instead, so i can literally swap between muting and app expose. I've generally lived with it up until this point but I think I need to get it fixed, I doubt it is something i can fix at home but I just want to know what is happening before I spend my precious little money.

    Sorry I left some stuff out. My keyboard has 2 sets of functions so when I UnCheck the Use 'F1, F2 etc keys as standard function keys' it switches to the Mute function on the F10 key, the decrease volume key on F11, etc so when it is on this certain keys will trigger the mute function without me actually pressing the mute key. Where as when I switch the 'F1, F2 etc keys as standard function keys' on those same keys that triggered mute now trigger         "app expose" function, so it doesn't help, also i didn't want to go into excruciating detail last time but some other keys either don't work like the mute key or the increase volume key and other keys do other keys functions. so in summary I probably should get the keyboard replaced but how long does that take? and how much does it cost

Maybe you are looking for

  • Mail rebuild mailbox issue with Gmail

    I set up Mail 4.6 to receive and send e-mails to and from Gmail as per the instructions on the Gmail site and used additional information on this forum. What is happening is whenever I rebuild the gmail folder it downloads again all the files I have

  • Where can I access / download an iPhoto version to run on a G3 iMac?

    My parents run OS 9.2 on an old blue G3 iMac - great machine, but not upgradeable to X. They have a large number of old family photos which I have been scanning for them. Is there an available iPhoto version which I can access for them to run their s

  • How to convert Oracle Forms 11g module to XML

    Hi All, I have developed few modules using Oracle Forms 11gR2 builder.I would like to convert these modules to XML(for comparing).Can someone let me know the process to do so in Forms 11g? Thanks in advance.

  • Open NAT Type help ( CISCO WRV210 )

    Hello, can anyone help me open my NAT Type? it says my NAT Types : 2 and that it is Moderate,i really really really want to open it , I Tried going to the Small Business webpage and I Couldn't find anything that's why I came back here, could anynone

  • Weird Blackout Notification issue

    Okay this is an odd one. I've got a windows host that I bounce the agent nightly (otherwise I leak myself out of memory) I do so programatically via a scheduled task. C:\grid_control\bin\emctl start blackout WebSiteBlackout webfocus & C:\grid_control