MDL for Direct I/O Request

Hi All,
I am going through the Direct I/O method described in MSDN page
https://msdn.microsoft.com/en-us/library/windows/hardware/ff565381(v=vs.85).aspx
http://www.codeproject.com/Articles/8651/A-simple-demo-for-WDM-Driver-development
I need some clarification regarding the locking the physical pages and accessing MDL in the chain of layered drivers.
1) When the I/O manager tries to lock the physical pages for the corresponding user space virtual address, what happens if a particular physcial page is in already in use (Locked) by some other application/driver as there is single Physical Memory shared
by all applns and drivers?
2) MDL has to be created in the context of the user process or highest-level of driver in a driver chain that handles the IO request, but it can be consumed in any process context or driver below in the stack. Is my understanding correct?
Regards,
Vijayan

If the locking fails for some reason, then yes, I/O manager fails the request and the driver won't see it.
But locking here does not mean exclusive access, it means that the physical pages are pinned and won't go away until allowed to.
-- pa

Similar Messages

  • Dispatch Instructions for Direct Supply from Vendor to Customer.

    Dear Experts,
    Our Company is Project Industry. We have implmented SAP ECC 6.0 in 2008 with SD, FI, MM, PP, QM, PS, DMS modules.
    In our case 70% Deliveries to customer are from direct dispatch from our vendor to Client. Steps are as follows.
    1. Buyer issues PO to vendor for direct dispatch to customer. After readiness of material vendor gives Inspection call to Buyer.
    2. Buyer creates inspection notification using T-code QM01.
    3. Quality department visit the vendors place, inspect the material & clears the inspection notification.
    4. After acceptance of material, Project Execution issues Dispatch instructions to vendor with PO No. & Item details. This is    Outside SAP in MS word.
    5. Vendor Supplies the material to Customer based on dispatch instructions.l
    6. After receipt of dispatch document from vendor, Buyer creates Goods Receipt w.r.t. Purchase order in MIGO. We have Put ABAP check for GR creation to check Accepted Quantity of Inspection notification of that PO line item.
    Now our Management wants to Implement above Step No. 4 of creation of dispatch instructions in SAP.  At the time of creation dispatch instructions, system shall check if inspection notification is created & allow the creation for accepted PO line item quantity in the notification & only after the inspection notification is closed in SAP . Dispatch instructions should have information such as PO No., Line item no., Material Code, Material Description & quantity to be dispatch, Vendor Name, Project Name.
    As per my knowledge in Standard SAP Dispatch Instructions Process is not there.
    Request you to give your valuable opinion.

    dispatch instructions can be put into a long text at header or item level, just depends if they are item specific or apply to all items of the PO.
    if you do this after the initial PO creation, then this is a PO change and you can print the PO changes as an extra message and send to your vendor.
    checking  if inspection notification is created has  to be  made via user exit.

  • SQL Loader choosing conventional path when direct path is requested

    We have a mystery regarding SQL Loader choosing to load with conventional path even though direct path is requested.
    We have a control file that produces direct-path loads and one which does not. The difference between them does not seem to account for the difference in behavior.
    The following control file does not give us direct-path:
    OPTIONS (
         SKIP=0,
         ERRORS=0,          
         DIRECT=TRUE,          
         NOLOGGING
    LOAD DATA
    INFILE "[file path]" "STR x'0A'"
    BADFILE "[file path].bad"
    DISCARDFILE "[file path].dsc"
    DISCARDMAX 0
    INSERT
    INTO [schema name].[table name]
    FIELDS TERMINATED BY X'2C'
    OPTIONALLY ENCLOSED BY '?'
    TRAILING NULLCOLS
         C1_ACD_LINE_CD     CHAR(2000),
    [column specifications continue]
    )When running with this control file, the log shows:
    Number to load: ALL
    Number to skip: 0
    Errors allowed: 0
    Bind array:     64 rows, maximum of 256000 bytes
    Continuation:    none specified
    Path used:      Conventional
    Table [schema name].[table name], loaded from every logical record.
    Insert option in effect for this table: INSERT
    TRAILING NULLCOLS option in effectIf we use a control file that is modified as follows:
    OPTIONS (
         SKIP=0,
         ERRORS=0,     
         DIRECT=TRUE,     
         PARALLEL=TRUE,
         NOLOGGING
         )Then we do get direct-path load:
    Number to load: ALL
    Number to skip: 0
    Errors allowed: 0
    Continuation:    none specified
    Path used:      Direct
    Table [schema name].[table name], loaded from every logical record.
    Insert option in effect for this table: INSERT
    TRAILING NULLCOLS option in effectSo there is nothing about the table (constraints, triggers, etc.) that is preventing direct-path loads.
    Now, we stumbled into this PARALLEL thing by accident - we are not really trying to do parallel loads.
    In my reading of the Utilities guide (http://docs.oracle.com/cd/E11882_01/server.112/e22490/ldr_modes.htm#autoId64 ), the PARALLEL option lets SQL Loader tolerate multiple sessions loading to the same segment at once, but does not perform parallel processing itself. So, is it possible there is some other lock on the table is causing SQL Loader to block direct-path loads to the table (because of a previous SQL Loader direct-path load, perhaps) unless the PARALLEL option is invoked? If so, how do we recognize that state and how do we resolve it?
    Version information:
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    PL/SQL Release 11.2.0.3.0 - Production
    CORE     11.2.0.3.0     Production
    TNS for Solaris: Version 11.2.0.3.0 - Production
    NLSRTL Version 11.2.0.3.0 - Production
    Any thoughts or suggestions would be appreciated.
    Thanks,
    Mike

    From the same link
    >
    To use a direct path load (except for parallel loads), SQL*Loader must have exclusive write access to the table and exclusive read/write access to any indexes.
    >
    So I suspect that when using only DIRECT=TRUE, Oracle is not able to get an exclusive lock on the required objects, so it uses the conventional mode.
    From a later section
    >
    - Segments to be loaded do not have any active transactions pending.
    To check for this condition, use the Oracle Enterprise Manager command MONITOR TABLE to find the object ID for the tables you want to load. Then use the command MONITOR LOCK to see if there are any locks on the tables.
    >
    Would be interested in knowing what you find
    HTH
    Srini

  • FBVB error msg "Transaction not defined for direct call-up"

    Dear Gurus,
    Pls help me on issues below:-
    1.)What is the diff between FBV0 and FBVB?
    2.)When i try to initialize FBVB. I received an error "Transaction FBVB not defined for direct call-up. Can u teach me how to fix it up coz one of my end-user requested this T-code.
    Thanks.

    Nothing needs to be fixed - the transaction is called behind the scenes when the user uses FBV0 to post a parked document.  Users should never call FBVB directly.
    Andrew

  • Workflow for Approval of Appropriation Request

    Dear experts,
    I have been working on Workflow for Approval of Appropriation Request.
    Even after carrying out all the required configuration, the process is not working. Following are the symptoms:
    When appropriation request is submitted for Approval, I am maintaining user ids of approvers in the Partner field.The moment I click For Approval status the Approve Button is deactivated.Even when I log in from the Approver's user ID the button is Deactivated. 
    When I check the Business Workplace Inboxes of Approvers there are no Workflow related mails.
    please help me out
    Regards,
    srikanth

    srikanth,
    Have you maintained all the configurations related to Work flow in IMG? like activating event linkage, assigning agents, approval schema etc...
    Also, have you maintained the workflow automatic configuration in transaction SWU3,
    you have to maintain the following:
    1. create a user id WF-BATCH, user type system and maintain a password for this user (seek BASIS team help for doing this)
    2. Assign SAP_ALL & SAP_NEW in user profile tab.
    3. in SWU3, under Maintain Runtime Environment --> Maintain Workflow System Administrator , select line and click on execute button, select user - WF-BATCH, save and back.
    4. then in the same screen select *Configure RFC Destination * click on execute, system prompts with the user id mentioned in the above step, you enter the password mentioned in the first step, click OK.
    5. now select *Maintain Runtime Environment * click on perform automatic configuration button (f9).
    6. Ensure that the option Maintain Runtime Environment turns to Green tick mark.
    7. select Classify Tasks as General click on perform automatic configuration button (f9).
    8. Ensure that the option Maintain Runtime Environment turns to Green tick mark.
    Now can go to transaction SWDD, on the left side of the screen, in the field WORKFLOW enter this value* WS00300022* press enter. Click on test (F8) button.
    In the Test Work flow screen select BUS2104 line, it shows a new line at the bottom of the screen with the following options:
    Object type:  BUS2104, Key:
    You enter the appropriation request number in the  field key (you cannot directly enter value here, choose drill down option (f4) then a new window pops up, enter the approp request number, click ok.
    then click on execute (f8).
    Now you can check in the approver's business work place under Inbox - workflow.
    Praveen

  • Release Strategy in PO for direct materials not driven by MRP

    We have a requirement to enable release strategy for purchase orders created for direct materials that are not driven from an MRP requirement for a single plant.
    Request you to let me know how I can make this work.
    I have an option to make it mandatory to have Preq for these PO's and can enable release strategy for Preq which are created other than MRP.
    request to let me know if there are other options in PO's itself where I can find that the Purchase orders are created directly and put release strategy in it.
    Thanks and Regards
    Murali

    Hi Murali,
    Standard SAP provides PO release strategy at header level only and not at item level.
    So you can create a new PO document type and allow use of only this document type for manual PO creation.
    Then set-up PO release strategy for newly created document type, where one of the primary characteristic will be Order Type (Purchasing).
    Hope this will fulfill your requirements.
    -Ravi

  • Asking Account Assignment Category for Direct Materials

    Experts,
    ECS Scenario with PPS, ECC EHP4, SRM7.0.
    The system is giving error as 'account assignment category is missing' for 'direct materials'. We have same problem while creating SC in SRM also and for PDP als.
    Items with account assignment are working perfecly fine for both SC and PDP, for same product category.
    For PDP: System did not give any error at PR stage, but if see log in SLG1 in SRM, we see that, it did not transfer to SRM as 'account assignment category' is missing.. moreover, If we create a standard PO item, for the same material group (without reference to PR) it is pefectly working. GR, IR everything is fine in ECC... So there should not be any problem in ECC account assignment(?).
    We have not implimented any BADI. Just used the standard, as it is... Product category, location, storage location are maintained in PPOMA_BBP. Accounting system for vendor is also maintained...
    What could be other possiblities? kindly help.
    GH

    hi
    Can you create sc see  account assignment folder though ypu order as direct material in PPS scenario?
    please check BBP_PDIGP-subtype =dp and external requirement.
    SAP has designed like that for PPS scenario
    Direct materials with account assignment
    check with SAP, Learn that SRM not creates a shopping cart for direct materials for the purchase requests.
    since they are throwing explicitly error message
    'account assignment category is missing' for 'direct materials'
    Muthu

  • Getting error while creating PO for direct material in SRM 7.0

    While creating PO in SRM for direct material,i am getting the error as :Backend error-No Funds center entered/derivedin item 00001(3000/2211100).Please suggest me the solution

    Hi,
    We are using PPS functionality with SRM 7.0
    Regards,
    Gopal
    Edited by: gopalthadi on Feb 9, 2011 5:01 PM

  • Badi/User-exit for vendor down payment request in f-47

    hi all,
    is there any badi/user-exit available for vendor down payment request?
    I need to trigger a workflow when a vendor down payment request in transaction code F-47.
    how can i do this?
    Pls guide me.
    Thanks & regards,
    Raj

    Did it using a business transaction event

  • User-Exit/Badi For Vendor Down Payment Request

    hi All,
    Is there any user-exit or badi available for vendor down payment request?
    tcode:f-47.
    please let me know.
    Thanks & Regards,
    Raj

    I want to trigger an event for workflow when
    a vendor down payment request is created in
    *tcode f-47.*
    Well if you are not able to find the correct enhamcement spot then you can approach as below
    When ever you create a New Item In the Tcode F-47 the  if you succesfully saves the data then it prompts you a message like below
    *Document 1700000000 was posted in company code 2100*
    So instead of searching for Exits or BAdi's try to Start workflow by using the message
    for this all you need to bind the message and the Workflow , for this you have use the transaction SWUY it is a wizard where you need to specify the Message class and the message number

  • Partial payment for Vendor down payment request

    Hi Gurus
    How to do partial payment for vendor down payment request  using F-48
    If i enter partial amount next time same request is not appearing in the list.
    Pls guide me. Reply will be appreciated with full points
    Thanks in advacne
    Sneha

    Hi Ravi
    Thanks for info
    My doubt is MM is creting Down payment request using F-47 For ex  Rs100000
    for this request using F-48 i want to pay partialally means for Rs50000
    Balance i want to pay it later, How this can be done.
    Pls guide me
    Rgds
    Sneha

  • Workflow for vendor down payment request

    hi All,
    i need to develop a workflow for vendor down payment request as there is no standard workflow available.
    But not able to find any business object for it. Is there any standard business object available for it?
    If no what are the steps that i should follow to create a business object for vendor down payment request?
    plz guide me.
    Thanks & Regards,
    K.Perumalraj
    SAP Workflow Consultant

    BKPF is the business object

  • COPA Values in the Profitability analysis for a credit memo request

    Hi All,
    When I am trying to create an Invoice document for a Credit Memo request having a Configurable material , in the accounting document profitable analysis Profit Center view fields are not getting updated.
    If we do the same thing for a reference material profit center view fields are getting updated properly.
    What is the problem with the Configurable  material.
    Thanks in advance,
    RajaMahi

    I would start fresh with a new sales order.  When you create with reference both the return delivery and credit memo are created with reference to the return sales order.  Here is an example document flow to clarify:
    Document                                      Date               Qty/value   UoM/Cur   Overall proc. status
                                                                                    Return 60000077 / 10                          08/25/05               10.000  EA      Completed                                 
    . Returns Delivery 500000016 / 10             08/25/05               10.000  EA      Completed                                 
    .. GD returns QI 4900030060 / 1               08/25/05               10.000  EA      complete                                  
    .. Credit for Returns1 10000017 / 10          08/25/05               10.000  EA      Completed                                 
    ... Accounting document 10000017              08/25/05               10.000  EA      Cleared

  • Any thoughts on auto sourcing for a non catalogue request?

    Any thoughts of auto sourcing for a non catalogue request?
    If i have a Contract Purchase Agreement set for a certain Category and if i use the same category in the non catalogue request purchase requisition will the workflow automatically generate the PO?
    Following set to Y
    CONTRACT_REQUIRED_FLAG
    INCLUDE_NON_CATALOG_REQ_FLAG
    USE_CONTRACT_FLAG
    How the price will be determined in the PO in such cases?

    Hi,
    You need to define the sourcing rule, ASL and default assignment sets and map the CPA in the ASL setup.
    This will drive the autocreation of PO.
    Thanks,
    PS.

  • When asking siri for directions home it gives us someone elses contact info. how do i change this?

    when asking siri for directions home it gives us someone elses contact info. How can i change this?

    settings - general - siri - my info -

Maybe you are looking for

  • Using EL in custom tag with JSP1.2 container

    I search the the Forum here and Google for a method how I can use expression language in my custom tag. But I have to use a JSP1.2 container which makes it quite difficult. What I need is startsWith-Tag which looks like this. <str:startsWith conditio

  • My Ichat is no longer working now that I have iMessage

    I can not get the ichat to work anymore.  I even created a new AIM account just so that I can do a screen share.. What is the deal? I sent invitations that were not recieved at all and vice versa.. Please help.  thanks

  • HT201272 Music Album not in libraby or cloud??

    Help Please! I puchased christmas albums last year, but they are not showing in my library.  They show purchased in itunes but not no cloud to downloan and I don't even have the option to repurchase??????  Where did they go and can someone help me fi

  • Authorization/Permissions in CRM

    Hi all, I am 100% sure that someone of you can help me;). I am using CRM in the portal and now I have to create different permission roles. In my CRM we have all different cities from a country but the user should only see the cities which belong to

  • Iphoto can't show all photos inported in an event

    The info shows there are 132 in one event, but there are only 89 photos, and other ones do disappear. Almost all events have this problem. However, I can see all photos inported in "Photo". How to fix it?