rvd

Forum Replies Created

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • in reply to: I’m newbie in kernel programming, TDI program please help!:( #5650
    rvd
    Participant

      Thank you, I’ll try with your solution you suggest. Hope it will help me pass this problem.

      in reply to: I’m newbie in kernel programming, TDI program please help!:( #5648
      rvd
      Participant

        Hi Vijender,

        I think you ‘re right, I’m newbie in this case, so spend more time for solve it. A my friend give me Idea that make a system thread and call all socket driver function in this thread. But I don’t know how to get data from thread because I need to get data to virtual disk driver buffer. Can you have any solution or if you can spend your time, I would like to send my code to you, you can see it and help me where i’m wrong.

        Thanks so much.

        in reply to: I’m newbie in kernel programming, TDI program please help!:( #5646
        rvd
        Participant

          My virtual disk have a routine function

          CDReadIN PDEVICE_OBJECT DeviceObject, IN PIRP Irp).

          This routine is called by the I/O system to read or write to a device that we control. When Interupt major function in case IRP_MJ_READ will call to function ReadDataOffset(Filename, offset, length, buffer) for read data from iso file (CD image file). If iso file is local, run OK, but now read iso file from server (Unix) need a socket driver (TDI), a export driver for get data from server. I build a kernel socket driver from TDI use TCP protocol.

          In function ReadDataOffset of virtual disk driver I call socket driver functions for make a session with server.

          – Create enpoint connection
          – Create transport address handle
          – Set event handle
          – Bind enpoint connection and transport address handle (associate a tdi transport connection)
          – Connect to server
          – Send command
          – Get data to buffer
          – Disconnect
          – Close enpoint connection handle
          – Close transport address handle

          After finish the first session (finish the first call to ReadDataOffset function), virtual disk request next session (call to ReadDataOffset again), error happend when running at the first command line ASSERT( KeGetCurrentIrql() == PASSIVE_LEVEL ) in socket driver code (the first time no problem). If I remove these command lines, happend will happend immediatly when finnish the first session. Now I can not know what happend and have no solution for it. I’m looking forward to hearing from you, experts.

          Thanks in adv.

          in reply to: I’m newbie in kernel programming, TDI program please help!:( #5644
          rvd
          Participant

            Can anyone help me? How about you Mr.Vijender? I’m waiting reply from you.

            In virtual disk driver there is a function ReadOffset(ULONG offset, PVOID dest, ULONG length) for get data from socket driver. What happend in my program, what solution for my case, plsease help me.

            in reply to: I’m newbie in kernel programming, TDI program please help!:( #5643
            rvd
            Participant

              Hi Vijender,
              This module I try test with VarpoCD driver (Virtual CD driver – open source), learning kernel programming purpose only. If work fine, I will post it to soureforge.net. Thank you for replying me and help me. My email is tranvietlong@yahoo.com.

              Thanks in adv.

              in reply to: Failure to receive data TDI connection endpoint. Please help #5634
              rvd
              Participant

                Thanks so much Taras. I have got your idea, my Recv function is called whenever other virtual disk driver need (tdi driver is export driver), not follow receiving event. So I disable the EventReceive function and driver work fine. And now I would like to ask you for clearly about it. I don’t know why after call set event handle for EventReceive function, the Recv function don’t work. Thanks again for you help.

                VL.

                in reply to: Create TDI enpoint connection error, please help? #5626
                rvd
                Participant

                  Dear Anton, thanks so much for your help. Thank you again. 😆

                Viewing 7 posts - 1 through 7 (of 7 total)