Making use of Intel PAE from user programs

On Red Hat Linux v8, it is possible to make use of the Intel PAE technology from user programs. In particular, it is possible to map arbitrary portions (up to several Mb at a time) of the processor's physical RAM into a process's virtual address space.
I can see Sun online documentation for how Solaris Intel edition device drivers can make use of PAE for DMA purposes (using, e.g., ddi_dma_mem_alloc(9F)). However, I can find no documentation for how to do do something similar to the Linux mapping trick above from an application.
Is this possible? Any tips?
Thanks!

Apparently via the xmemfs filesystem: see man mount_xmemfs(1M).

Similar Messages

  • Use several DOS command from java program

    Using "Runtime.getRuntime().exec(toto.bat)" I have no problem to run a Command in my DOS window...
    But the problem appear when I want to call another command in this same window from myApp.java...
    In fact after executing the first command I find no way to have another access to this DOS window...
    Is there any way to set the Process created by calling exec() method as the default system??
    Hope my explications are clear...
    Does someone have the solutions...this will help me so much...
    bilbou.

    ok but I have found no forum which resolve my problem...can you give more details about what you think concerning the solution of my pb...
    bilbou.

  • What we use to take date from user

    I want to make a simple form in that one field is Date of birth for that i don't know what is affectively use i want that field like this(../../....) the dot wil be filled by the user and then date stored in the database.

    You should do 2 things:
    Don't let the user in doubt how to format the date. The best way is to give it 3 separate text fields with unmistakable  lables instead of a single text field.
    Convert the given parts to Date type immediatly and store it in database as Date and not as varchar.
    bye
    TPD

  • IOCTL from user level program do not reach module

    Hello,
    I am facing with a weired problem. The user level ioctl on my device file does not reach the ioctl handler in my module at all. I have a simple character device driver called dummy (just pulled from a device driver manual 'hello world' example).
    [root@/]modinfo | grep dummy
    227 fa2f9a20 634 220 1 dummy (dummy driver)
    [root@/]ls -l /devices/pseudo/dummy\@0\:0
    c-wxrw--wx 1 root sys 220, 0 Dec 3 15:13 /devices/pseudo/dummy@0:0
    The open on the device file works well. But when I call ioctl, the message in the ioctl handler does not print. Niether does the ioctl call appear in the DTrace probes. perror from user program returns :
    : Invalid argument
    Let me know of any probable cause of ioctls not getting executed.
    Thanks in advance
    ->Shreyas
    My driver code is as follows :
        * Minimalist pseudo-device.
        * Writes a message whenever a routine is entered.
        * Build the driver:
        *         cc -D_KERNEL -c dummy.c
        *         ld -r -o dummy dummy.o
        * Copy the driver and the configuration file to /usr/kernel/drv:
        *         cp dummy.conf /usr/kernel/drv
        *         cp dummy /tmp
        *         ln -s /tmp/dummy /usr/kernel/drv/dummy
        * Add the driver:
        *         add_drv dummy
        * Test (1) read from driver (2) write to driver:
        *         cat /devices/pseudo/dummy@*
                  echo hello > ‘ls /devices/pseudo/dummy@*‘
        * Verify the tests in another window:
        *         tail -f /var/adm/messages
        * Remove the driver:
        *         rem_drv dummy
    #define SOLARIS
    #include <sys/devops.h> /* used by dev_ops */
    #include <sys/conf.h>               /* used by dev_ops and cb_ops */
    #include <sys/modctl.h> /* used by modlinkage, modldrv, _init, _info, */
                                           /* and _fini */
    #include <sys/types.h> /* used by open, close, read, write, prop_op, */
                                           /* and ddi_prop_op */
    #include <sys/file.h>               /* used by open, close */
    #include <sys/errno.h> /* used by open, close, read, write */
    #include    <sys/open.h>         /* used by open, close, read, write */
    #include    <sys/cred.h>         /* used by open, close, read */
    #include    <sys/uio.h>          /* used by read */
    #include    <sys/stat.h>         /* defines S_IFCHR used by ddi_create_minor_node */
    #include    <sys/cmn_err.h>      /* used by all entry points for this driver */
    #include    <sys/ddi.h>          /* used by all entry points for this driver */
                                     /* also used by cb_ops, ddi_get_instance, and */
                                     /* ddi_prop_op */
    #include <sys/sunddi.h> /*          used by all entry points for this driver */
                                     /* also used by cb_ops, ddi_create_minor_node, */
                                     /* ddi_get_instance, and ddi_prop_op */
    #include "vmci_defs.h"
    #include "vmciDatagram.h"
    char _depends_on[]="vmci";
    static int dummy_attach(dev_info_t *dip, ddi_attach_cmd_t cmd);
    static int dummy_detach(dev_info_t *dip, ddi_detach_cmd_t cmd);
    static int dummy_getinfo(dev_info_t *dip, ddi_info_cmd_t cmd, void *arg,
         void **resultp);
    static int dummy_prop_op(dev_t dev, dev_info_t *dip, ddi_prop_op_t prop_op,
         int flags, char *name, caddr_t valuep, int *lengthp);
    static int dummy_open(dev_t *devp, int flag, int otyp, cred_t *cred);
    static int dummy_close(dev_t dev, int flag, int otyp, cred_t *cred);
    static int dummy_read(dev_t dev, struct uio *uiop, cred_t *credp);
    static int dummy_write(dev_t dev, struct uio *uiop, cred_t *credp);
    static int dummy_ioctl(dev_t dev, int cmd, intptr_t arg, int mode,
                          cred_t *credp, int *rval);
    static int dummy_poll(dev_t dev, short events, int anyyet,
                          short *reventsp, struct pollhead **phpp);
    /* cb_ops structure */
    static struct cb_ops dummy_cb_ops = {
         dummy_open,
         dummy_close,
         nodev,                     /* no strategy - nodev returns ENXIO */
         nodev,                     /* no print */
         nodev,                     /* no dump */
         dummy_read,
         dummy_write,
         dummy_ioctl,
         nodev,                     /* no devmap */
         nodev,                     /* no mmap */
         nodev,                     /* no segmap */
         dummy_poll,                /* returns ENXIO for non-pollable devices */
         dummy_prop_op,
         NULL,                      /* streamtab struct; if not NULL, all above */
                                    /* fields are ignored */
         D_NEW | D_MP,              /* compatibility flags: see conf.h */
         CB_REV,                    /* cb_ops revision number */
         nodev,                     /* no aread */
         nodev                      /* no awrite */
    /* dev_ops structure */
    static struct dev_ops dummy_dev_ops = {
         DEVO_REV,
         0,                            /* reference count */
         ddi_no_info,
         //dummy_getinfo,
         nulldev,                      /* no identify - nulldev returns 0 */
         nulldev,                      /* no probe */
         dummy_attach,
         dummy_detach,
         nodev,                        /* no reset - nodev returns ENXIO */
         &dummy_cb_ops,
         (struct bus_ops *)NULL,
         NULL                         /* no power */
    /* modldrv structure */
    static struct modldrv md = {
         &mod_driverops,               /* Type of module. This is a driver. */
         "dummy driver",              /* Name of the module. */
         &dummy_dev_ops
    /* modlinkage structure */
    static struct modlinkage ml = {
         MODREV_1,
         &md,
         NULL
    /* dev_info structure */
    dev_info_t *dummy_dip; /* keep track of one instance */
    /* Loadable module configuration entry points */
    int
    _init(void)
         cmn_err(CE_NOTE, "Inside _init");
         return(mod_install(&ml));
    int
    _info(struct modinfo *modinfop)
         cmn_err(CE_NOTE, "Inside _info");
         return(mod_info(&ml, modinfop));
    int
    _fini(void)
         cmn_err(CE_NOTE, "Inside _fini");
         return(mod_remove(&ml));
    /* Device configuration entry points */
    static int
    dummy_attach(dev_info_t *dip, ddi_attach_cmd_t cmd)
         cmn_err(CE_NOTE, "Inside dummy_attach");
         switch(cmd) {
         case DDI_ATTACH:
               dummy_dip = dip;
               if (ddi_create_minor_node(dip, "0", S_IFCHR,
                   ddi_get_instance(dip), DDI_PSEUDO,0)
                   != DDI_SUCCESS) {
                   cmn_err(CE_NOTE,
                         "%s%d: attach: could not add character node.",
                         "dummy", 0);
                   return(DDI_FAILURE);
               } else
                   return DDI_SUCCESS;
         default:
               return DDI_FAILURE;
    static int
    dummy_detach(dev_info_t *dip, ddi_detach_cmd_t cmd)
         cmn_err(CE_NOTE, "Inside dummy_detach");
         switch(cmd) {
         case DDI_DETACH:
               dummy_dip = 0;
               ddi_remove_minor_node(dip, NULL);
               return DDI_SUCCESS;
         default:
               return DDI_FAILURE;
    static int
    dummy_getinfo(dev_info_t *dip, ddi_info_cmd_t cmd, void *arg,
         void **resultp)
         cmn_err(CE_NOTE, "Inside dummy_getinfo");
         switch(cmd) {
         case DDI_INFO_DEVT2DEVINFO:
                                     *resultp = dummy_dip;
                                     return DDI_SUCCESS;
                                 case DDI_INFO_DEVT2INSTANCE:
                                     *resultp = 0;
                                     return DDI_SUCCESS;
                                 default:
                                     return DDI_FAILURE;
    /* Main entry points */
    static int
    dummy_prop_op(dev_t dev, dev_info_t *dip, ddi_prop_op_t prop_op,
      int flags, char *name, caddr_t valuep, int *lengthp)
      cmn_err(CE_NOTE, "Inside dummy_prop_op");
    //  return DDI_SUCCESS;
      return(ddi_prop_op(dev,dip,prop_op,flags,name,valuep,lengthp));
    static int
    dummy_open(dev_t *devp, int flag, int otyp, cred_t *cred)
       int status;
       cmn_err(CE_NOTE, "Inside dummy_open");
        return DDI_SUCCESS;
    static int
    dummy_close(dev_t dev, int flag, int otyp, cred_t *cred)
        cmn_err(CE_NOTE, "Inside dummy_close");
        return DDI_SUCCESS;
    static int
    dummy_read(dev_t dev, struct uio *uiop, cred_t *credp)
         cmn_err(CE_NOTE, "Inside dummy_read");
         return DDI_SUCCESS;
    static int
    dummy_write(dev_t dev, struct uio *uiop, cred_t *credp)
         cmn_err(CE_NOTE, "Inside dummy_write");
         return DDI_SUCCESS;
    static int
    dummy_ioctl(dev_t dev, int cmd, intptr_t arg, int mode,
                          cred_t *credp, int *rval)
         cmn_err(CE_WARN, "%s(%d) Received function : %d\n", __FUNCTION__, __LINE__, cmd);
         return(0);
    static int
    dummy_poll(dev_t dev,                // IN: Device number.
               short events,             // IN: Requested events.
               int anyyet,               // IN: Whether other fds have had events.
               short *reventsp,          // OUT: Mask of satisfied events. 
               struct pollhead **phpp) { // OUT: Set to a pollhead if necessary.
         cmn_err(CE_WARN, "%s(%d) \n", __FUNCTION__, __LINE__);
       return 0;
    }

    Read very carefully the file /usr/include/sys/ioccom.h.
    -r

  • How to access a variable from one program to another (independent)

    Hi,
    My requirement is to use a variable(value) from one program(prog1) to another (prog2). how is it possible.
    Regards
    Arani Bhaskar

    Go for memory id .
    passing on values from one program to another program
    Program1
    EXPORT (variable) TO MEMORY ID 'LOC'.
    Program2
    IMPORT (variable) FROM MEMORY ID 'LOC'.
    LOC is the address , for more press f1 on export in abap editor.

  • Printing barcode from ABAP program

    Hi,
    Is it possible to print barcode (using zebra barcode printing) from ABAP program directly without using Smart Form, SAP Script or Adobe PDF Form.
    I have the barcode instructions, I just want to output it to the barcode printer directly.
    Sample instructions to be output to barcode printer:
    FT128,288XG005.GRF,1,1^FS
    FT96,128XG000.GRF,1,1^FS
    FT64,192XG001.GRF,1,1^FS
    FT0,288XG002.GRF,1,1^FS
    FT0,224XG003.GRF,1,1^FS
    FT128,256XG004.GRF,1,1^FS
    FO16,180GB496,0,5^FS
    FO52,37GB450,66,4^FS
    BY4,3,40FT86,320^BCN,,Y,N
    FD>;123456>67FS
    PQ1,0,1,YXZ
    XAID000.GRFFSXZ
    Thanks in advance.

    Hello,
    Yes we can do it..
    Go through this link you will some idea
    http://sapprograms.blogspot.com/2008/11/barcode-printing.html
    http://www.sap-img.com/abap/details-information-about-sap-barcodes.htm

  • Summary : WF: PO - Emailing PO's from concurrent program using new workflow

    Hi Consultants,
    We have requirement to send PO - Emailing PO's from concurrent program using new workflow
    Request details>
    develop a way to email a PO as a PDF from the reports menu. Currently the PO can only be emailed from the PO approval screen.
    The business would like a way to email the PO anytime after the PO is approved. Reference IT Request ticket #87341.
    Ticket#87341: Details
    Details: If a purchase order has been sent to the supplier by email, and it needs to be resent for some reason (lost, recipient out on vacation, etc.)
    we have to print off a hard copy, then scan it and email it out.
    We cannot just send a new email copy directly. We would like to have the ability to re-send an email copy of the PO directly.
    Business Justification: If a purchase order has been sent to the supplier by email, and it needs to be re-sent for some reason (lost, recipient out on vacation, etc.) we have to print off a hard copy, then scan it and email it out. We cannot just send a new email copy directly.
    This takes extra time and is inefficient.
    Please advice me how can i achive this one
    Thanks,
    Ashok

    Pl post details of OS, database and EBS versions.
    Pl see if MOS Doc 387949.1 (How Can a User Email a Purchase Order To an Email Address Without Modifying and Reapproving the PO?) can help
    HTH
    Srini

  • How to program shift register to read only when a new user is detected from user?

    Hi,
    I'm currently developing a program for position control in labview. The program is quite simple, whereby user will input the distance that he wants the table to be in the labview program, and labview will send signal to move a motor that will turn a ball screw to move a table horizontally to the targetted position. The criteria is that the profile of the motor depends on the distance it needs to move, whether a two-phase (acceleration and deceleration) or three-phase (acceleration, constant velocity, deceleration) to reach the target position.
    The problem occurs when the user wants to enter a new position (second input) for the table, as the input by user is position the table needs to be but the input required to determine which profile the motor follows depends on the distance that the table will move to get to the targetted position. Therefore, I would need a function to store the input by user temporarily, and recall it only when a new input from user is detected. By this, I would be able to use the difference of the input (input [n+1] - input[n]) and feed it to determine which profile the motor follows and the input by user can be kept as the position he wants the table to travel to (to compare with encoder).
    I thought of using shift registers to do this, but I am not able to make it to perform the deduction ([n+1] - [n]) only when it detects a new input. When i try using shift register, it travels to the targetted position, and one it reaches it will travel back to the original position. For example, when a user input 90, it means the table needs to move to point 90. As the shift register is initialized to 0, it will move to point 90 (90-0 = 90) but upon reaching 90, the shift register sends a signal of 90 (90-90 = 0) and the table returns to it's initial position.
    Is there any way that I can delay the reading of shift register only when a new input is detected or is there another way for me to achieve what i want?
    I've tried searching the discussion forum and ni website but couldn't find similar problems. Thanks for your help in advance.
    Solved!
    Go to Solution.

    Hi,
    I've managed to get what I needed by using a shift register + event structure as suggested by Adnan. However, I face another problem after implementing SR+event. I've attached two files, first the original program and second the updated program using SR + event. (it's only the jpg file as I've forgotten to save the labview program, will upload the program by tomorrow.
    In the original program, I have an elapsed time that is able to run continuously when I run the program. In the updated program, my elapsed time don't seem to run continuously when I run the program (as shown by elapsed time indicator). I need the elapsed time to run continuously as a input to calculate my motor profile.
    I suppose this is caused by the introduction of the event structure, will adding a case structure to wrap the event structure solve the problem or is there another way to get pass this. Appreciate if someone could drop me a pointer or two.
    Thanks
    Attachments:
    Mar 16 - continuous elapsed time.png ‏12 KB
    Mar 16 - elapsed time not continuous after introducing shift register + event structure.png ‏17 KB

  • User exit is used to get incoterms from ship-to-party.

    Hi Gurus,
    my client needs to catch incoterms from ship-to-party,
    please let me know which user exit is used to get incoterms from ship-to-party.
    regards,
    Naren

    In our system we get the inco terms from the ship to party. We use user exit move_fields_to_vbkd in program mv45afzz. The code looks like this:
    Inco terms
    Added to get the values of Inco Terms from
    Ship-To-Party instead of Sold-To-Party.
    data: oldship like kuwev-kunnr value space.
    if sy-ucomm   <> 'UEBR' and  "Ordre er ikke oprettet med reference
       t180-trtyp <> 'A'.        "Der er ikke Vis mode
      import oldship from memory id 'ZSS'.
      if *vbkd-inco1 is initial. "Første gang vi er i User-Exitet
        if kuwev-kunnr <> kuagv-kunnr. "Varemodtager forskellig fra ordregiver
          select single inco1
                        inco2
         into (vbkd-inco1,
               vbkd-inco2)
         from knvv
        where kunnr = kuwev-kunnr
          and vkorg = vbak-vkorg
          and spart = vbak-spart
          and vtweg = vbak-vtweg.
        endif.
      elseif oldship <> kuwev-kunnr and
       ( *vbkd-inco1 <> vbkd-inco1 or
         *vbkd-inco2 <> vbkd-inco2 ).
        select single inco1
                      inco2
          into (vbkd-inco1,
                vbkd-inco2)
          from knvv
         where kunnr = kuwev-kunnr
           and vkorg = vbak-vkorg
           and spart = vbak-spart
           and vtweg = vbak-vtweg.
      endif.
    endif.
    Det skal ligge udenfor if-sætningen for at undgå at det overskrives
    ved oprettelse med reference
    move kuwev-kunnr to oldship.
    export oldship to memory id 'ZSS'.
    /Torben

  • My CS2 has worked fine for serval years.  All of a suddend my user name, Alan Ford, and sereal number have vanished from my program.  How do I correct this?

    My CS2 has worked fine for serval years. All of a suddend my user name, Alan Ford, and sereal number have vanished from my program. How do I correct this?

    Hello,
    Why do you need to use the regasm utility from the post-build action?
    There is a difference between signing the assembly with a strong name and digital signature. The
    How to: Sign an Assembly with a Strong Name article in MSDN explains how to sign an assembly with a strong name (.snk). See
    How to digitally sign a strong named assembly for adding a digital signature.
    You may also find the
    What's the Difference, Part Five: certificate signing vs strong naming article helpful.

  • What database program will convert my Appleworks DB for use on Intel platform?

    What database program will convert my Appleworks DB for use on Intel platform?

    Yes, you just need the appleworks folder from applications.
    However, whether or not this is strictly legal is another question entirely, I'm afraid, unless you are planning to remove appleworks from your computer. You could just buy her her own copy of Appleworks, too.

  • Excel data read from users and upload in to Oracle DB using custom webpart

    Hi Team,
    I need to get the excel date from user using file upload control and read the data from the excel using custom webpart and validate the each rows whether having the values or not and need to upload the data to the oracle database.
    Can you please let me know the best approach to read the data from excel using sharepoint custom webpart.
    Thanks,
    Mylsamy

    Hi,
    According to your post, my understanding is that you want to read excel data from the uploaded file and insert the data into Oracle Database.
    The following way for your reference:
    1.Create a Visual Web Part using Visual Studio.
    2. Add an asp.net upload control into the .ascx file.
    <div>
    <asp:FileUpload ID="fileupload" runat="server" />
    <asp:Button ID="btnUpload" runat="server" onclick="btnUpload_Click" Text="Upload" />
    </div>
    3. Add some logic methods into .ascx.cs file.
    protected void btnUpload_Click(object sender, EventArgs e)
    //read data and insert the data into Oracle database.
    4.We can create a web service for adding data to Oracle database, then consume this web service in the visual web part.
    More information:
    http://msdn.microsoft.com/en-us/library/ff597539(v=office.14).aspx
    http://manish4dotnet.blogspot.in/2013/02/upload-ans-read-excel-file-using-c.html
    http://msmvps.com/blogs/windsor/archive/2011/11/04/walkthrough-creating-a-custom-asp-net-asmx-web-service-in-sharepoint-2010.aspx
    Best Regards
    Dennis Guo
    TechNet Community Support

  • I have just used migration assistant to import photos (using an ethernet cable) from my PC. It has worked but they have gone into a new user on my MacPro. How can I merge them into the one user account.

    I have just used migration assistant to import photos (using an ethernet cable) from my PC. It has worked but they have gone into a new user on my MacPro. How can I merge them into the one user account.

    How many pictures (or how many bytes) are we talking?  Now that the pictures are imported one way to cross users is to use a removable drive (although large volumes of files preclude this).
    The other is to login as the user where the pictures are, then copy them into the public drop box of the user where you want the picture.
    The arrow is showing (in ths example) copy files from the Pictures folder for my user to the guest user accounts public dropbox.  When you do this you may have to authenticate and you won't be able to see the results of the copy until you log in as the other user.
    All users are in the folder "/Users/"

  • Variable used in FOx formula should get value from user

    Hi Gurus,
    In my fox formula I want to multiply a keyfigure (say quantity) with a factor. For example if the factor is 10 then all records should get multiplied by 10.
    But the requirement is user shpuld be able to give the factor that should be multiplied. That is the l_factor used in the fox function should be a variable which gets value from user. I know we can give variables in filter and planning functions in IP. But can we give values in Fox formula.
    I would really appreciate the time and effort.
    Thanking you,
    Jerry Jerome

    Hello,
    May be you can try this solution.
    I think you have create a dummy character info-object(Z_Number) of same data type interget number.Create variable for Z_Number and restrict in filter(ZV_NUM).
    DATA Z_MAT TYPE 0Material.
    DATA Z_NUM TYPE Z_NUMBER.
    DATA Z_NUM_READ TYPE I.(Declate same as data type for Z_Number)
    Z_NUM = VARV(ZV_NUM).
    FORACH Z_MAT.
    Z_NUM_READ = Z_NUM.
    {Z_KF1,Z_MAT} = Z_NUM_READ * {Z_KF1,Z_MAT}.
    ENDFOR.

  • Is it possible to have two versions of Muse on one Machine?  WhenI open Muse from my program menu in WIndows 7 it comes up the way I am used to.  I did an upgrade a week or so ago and now I have an Adobe Muse CC 2014 on my desktop.  WhenI open the applica

    Is it possible to have two versions of Muse on one Machine?  WhenI open Muse from my program menu in WIndows 7 it comes up the way I am used to.  I did an upgrade a week or so ago and now I have an Adobe Muse CC 2014 on my desktop.  WhenI open the application that way the GUI interface looksw totally different, more like Illustrator.  What is that all about?

    Since posting the above, I have resolved a sensible work-around in regard to ebookstores which prefer us to have separate accounts for our separate Adobe IDs.
    However, I really would appreciate it if anyone here can confirm that a DRM controlled book does actually become associated with a particular Adobe ID account at the time of first download to Digital Editions on that PC/device.
    Two large book stores have said using my account with them to download books to our two separate Adobe IDs is OK, but I don't want to find my husband is unable to open his downloaded books.
    Thank you folks for any advice you can give,
    Sue

Maybe you are looking for