<div dir="ltr"><div style>What I meant to ask was something like</div><a href="http://lxr.linux.no/linux+v2.6.18/arch/sh/kernel/entry.S#L106">http://lxr.linux.no/linux+v2.6.18/arch/sh/kernel/entry.S#L106</a><br><div><br></div>
<div style>is not present in 3.8.3 kernel. Is it ?</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jun 26, 2013 at 11:10 AM, Rohan Puri <span dir="ltr"><<a href="mailto:rohan.puri15@gmail.com" target="_blank">rohan.puri15@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Wed, Jun 26, 2013 at 10:32 AM, Saket Sinha <<a href="mailto:saket.sinha89@gmail.com">saket.sinha89@gmail.com</a>> wrote:<br>
> Can you help me find the equivalent entry(I mean arch-specific definition)<br>
> of current in 3.8.3 kernel which I think is missing.<br>
> I think because of all this I am getting some strange warnings and error.<br>
><br>
><br>
> On Wed, Jun 26, 2013 at 10:28 AM, Rohan Puri <<a href="mailto:rohan.puri15@gmail.com">rohan.puri15@gmail.com</a>> wrote:<br>
>><br>
>> On Wed, Jun 26, 2013 at 1:44 AM, Saket Sinha <<a href="mailto:saket.sinha89@gmail.com">saket.sinha89@gmail.com</a>><br>
>> wrote:<br>
>> > I have to port a driver from 2.6.18 to 3.8.3<br>
>> ><br>
>> > Look at the below declaration of current<br>
>> > <a href="http://lxr.free-electrons.com/source/scripts/kconfig/gconf.c#L62" target="_blank">http://lxr.free-electrons.com/source/scripts/kconfig/gconf.c#L62</a><br>
>> > Where struct menu is<br>
>> > <a href="http://lxr.free-electrons.com/source/scripts/kconfig/expr.h#L159" target="_blank">http://lxr.free-electrons.com/source/scripts/kconfig/expr.h#L159</a><br>
>> ><br>
>> > The above one is in kconfig while the lower one is in the kernel. So<br>
>> > would<br>
>> > they be able to affect each other? I guess NO<br>
>> ><br>
>> > NOW in the driver to be ported-<br>
>> > current is defined as:<br>
>> > struct task_struct *task = current;<br>
>> ><br>
>> > but is still able to excess the field members of task_struct<br>
>> > <a href="http://lxr.linux.no/linux+v2.6.18/include/linux/sched.h#L767" target="_blank">http://lxr.linux.no/linux+v2.6.18/include/linux/sched.h#L767</a><br>
>> > like<br>
>> > attr.ia_uid = current->uid;<br>
>> > attr.ia_gid = current->gid;<br>
>> ><br>
>> > though it has not been initialized or assigned or typecasted to this<br>
>> > task_struct.<br>
>> > HOW?<br>
>> ><br>
>> > I searched on the entire lxr but could not find the solution.<br>
>> > Kindly help.<br>
>> > PS: This driver is built on 2.6.28 kernel so use lxr from 2.6.18 kernel<br>
>> > only<br>
>> > like<br>
>> > <a href="http://lxr.linux.no/linux+v2.6.18/" target="_blank">http://lxr.linux.no/linux+v2.6.18/</a><br>
>> ><br>
>> ><br>
>> > _______________________________________________<br>
>> > Kernelnewbies mailing list<br>
>> > <a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br>
>> > <a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
>> ><br>
>> Hi Saket,<br>
>><br>
>> Its arch specifc, check file<br>
>> <a href="http://lxr.linux.no/#linux+v2.6.18/include/asm-x86_64/current.h#L15" target="_blank">http://lxr.linux.no/#linux+v2.6.18/include/asm-x86_64/current.h#L15</a><br>
>><br>
>> - Rohan<br>
><br>
><br>
><br>
> _______________________________________________<br>
> Kernelnewbies mailing list<br>
> <a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br>
> <a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
><br>
<br>
</div></div>For 3.8.3 its here :<br>
<a href="http://lxr.linux.no/#linux+v3.8.3/arch/x86/include/asm/current.h#L17" target="_blank">http://lxr.linux.no/#linux+v3.8.3/arch/x86/include/asm/current.h#L17</a><br>
<span class="HOEnZb"><font color="#888888"><br>
- Rohan<br>
</font></span></blockquote></div><br></div>