>Ok,thanks guys, hmm seems to be harder than I thougth. :( > >Thing I want to do is just add some parameters the the kthread_t struct, or I >have already added t hem, I just need to set the initial values for them, these initial values will be different for eve ry thread. I'm going to use theses parameters to make scheduling decisions. But I want to set these parameters from user-land when I create the thread.
As we said, the *proper* place to set these flags is *NOT* in the per thread data structure but in the scheduling class specific data structure which is attached to each and every thread. When a new thread is created it will then automatically inherit the scheduling class from the creating thread. With the sched*param* function you can then change those parameters in the kernel. In principle, your changes should be contained in the particular scheduling class module. Use the modularity which is already provided. Casper _______________________________________________ opensolaris-code mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/opensolaris-code
