[ros-kernel] [PATCH] Callbacks

Gunnar Dalsnes hardon at online.no
Sun May 23 18:11:18 CEST 2004


 

-----Original Message-----
From: ros-kernel-bounces at reactos.com [mailto:ros-kernel-bounces at reactos.com]
On Behalf Of Alex Ionescu
Sent: Sunday, May 23, 2004 10:02 AM
To: 'ReactOS Kernel List'
Subject: [ros-kernel] [PATCH] Callbacks



Hi,

 

Well here is my first patch. I'm submitting it here because I want to see
what everyone thinks.

Please keep in mind I haven't written much C until now, so my
indentation/commenting might be bizarre.

I also had problems in where to put some of the structures/defines. I made
the structures already defined in extypes.h more complete and added the rest
directly in the .c file

Perhaps creating a callbacks.h file would be best? Let me know.

 

Also, all the debug output was for me to make sure that the callbacks were
actually getting created, and that the function wasn't simply failing. ROS
booted up and all the debug messages appeared, meaning that at least,
callback initialization, object creation and the default system callbacks
have been created successfully.

 

I've added the code to initialize the callbacks here:

 

   IoInit2();

 

+  // Initialize Callbacks before drivers

+  DPRINT1("Loading Callbacks\n");

+  ExpInitializeCallbacks();

+  DPRINT1("Callbacks Loaded!\n");

+

   /*

    * Load boot start drivers

    */

 

 In ExpInitalizeCallBack. (once again, the debug messages were for my use,
I'll remove them from the official bugzilla patch)

 

Anyways, included are all the changes I made. Sorry again if they don't
correspond to how stuff should be organized in ROS.

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://reactos.com:8080/pipermail/ros-kernel/attachments/20040523/d3ea0897/attachment.htm


More information about the Ros-kernel mailing list