kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* Build scatterlist covering a process' text segment?
@ 2011-05-23 23:06 Arvid Brodin
  2011-05-25 20:27 ` Arvid Brodin
  0 siblings, 1 reply; 12+ messages in thread
From: Arvid Brodin @ 2011-05-23 23:06 UTC (permalink / raw)
  To: kernelnewbies

Hi,

How do I build a scatterlist covering the text segment of a process? I have
found (struct task_struct).mm->start_code and ->end_code, that gives the address
(in some - unknown to me - address space) of the text segment. Since my try to
convert these addresses to an sglist:

	sg_init_one(&sg, task->mm->start_code, <length>);

failed miserably, I'm guessing these addresses need to be converted to some
address space compatible with sg_init_one()/sg_set_buf() before use? (I probably
need to search for pages containing these addresses?)


Thanks,
Arvid Brodin
Enea Services Stockholm AB

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2011-06-17 19:00 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-23 23:06 Build scatterlist covering a process' text segment? Arvid Brodin
2011-05-25 20:27 ` Arvid Brodin
2011-05-26  4:02   ` Mulyadi Santosa
2011-05-27 21:58     ` Arvid Brodin
2011-05-28  9:42       ` Mulyadi Santosa
2011-06-17  0:47         ` Arvid Brodin
2011-06-17 15:10           ` Jonathan Neuschäfer
2011-06-17 15:18             ` Metin KAYA
2011-06-17 17:59               ` Dave Hylands
2011-06-17 18:46               ` Jonathan Neuschäfer
2011-06-17 18:53                 ` Dave Hylands
2011-06-17 19:00                 ` Jonathan Neuschäfer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).