Thread (5 messages) 5 messages, 4 authors, 2016-05-16

How to initialize the new attributes in process control block.

From: masoud hematpour <hidden>
Date: 2016-05-15 17:38:52

Hi,

It is interesting. I have the same problem.

Thank you,

On Sat, May 14, 2016 at 11:16 AM, Youcun Liu [off-list ref]
wrote:
Dear all,

I am now working on building my own linux kernel and I want to add a new
attribute into the process control block. Then I will feed some data to the
new attribute from a user application. Finally I want to use the date to
improve the some original kernel algorithm(e.g process schduling).

I tried to initialize the new attribute directly in the 'task_struct',
obviously, it failed. So I decide to initialize the new attribute at the
very beginning, but I do not know how. Besides, I have trouble in finding
out which function can help me feed data to the new attribute.

Could you please give me some suggestions and help? Thanks a lot.

Best regards,
Youcun Liu

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20160515/31836487/attachment.html 
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help