public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* definition of sys_access function
@ 2013-05-29  8:12 johnspaul92
  2013-05-29  8:19 ` richard -rw- weinberger
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: johnspaul92 @ 2013-05-29  8:12 UTC (permalink / raw)
  To: linux-kernel

Where can i find the definition of the sys_access function???
I tried checking in syscalls.h. But there i found only the declaration.
Where can i find the definition so that i can understand what that function
actually does.



--
View this message in context: http://linux-kernel.2935.n7.nabble.com/definition-of-sys-access-function-tp657210.html
Sent from the Linux Kernel mailing list archive at Nabble.com.

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

* Re: definition of sys_access function
  2013-05-29  8:12 definition of sys_access function johnspaul92
@ 2013-05-29  8:19 ` richard -rw- weinberger
  2013-05-29  8:27   ` johnspaul92
  2013-05-29  8:28   ` Wang, Yalin
  2013-05-29  9:22 ` johnspaul92
                   ` (2 subsequent siblings)
  3 siblings, 2 replies; 8+ messages in thread
From: richard -rw- weinberger @ 2013-05-29  8:19 UTC (permalink / raw)
  To: johnspaul92; +Cc: LKML

On Wed, May 29, 2013 at 10:12 AM, johnspaul92 <johns@ti.com> wrote:
> Where can i find the definition of the sys_access function???
> I tried checking in syscalls.h. But there i found only the declaration.
> Where can i find the definition so that i can understand what that function
> actually does.

Use git grep to find out.
E.g. git grep "SYSCALL_DEFINE[0-9](access"

--
Thanks,
//richard

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

* Re: definition of sys_access function
  2013-05-29  8:19 ` richard -rw- weinberger
@ 2013-05-29  8:27   ` johnspaul92
  2013-05-29  9:18     ` Wang, Yalin
  2013-05-29  8:28   ` Wang, Yalin
  1 sibling, 1 reply; 8+ messages in thread
From: johnspaul92 @ 2013-05-29  8:27 UTC (permalink / raw)
  To: linux-kernel

I tried that and i got the result as fs/open.c
But i couldnt find any references to sys_access.




--
View this message in context: http://linux-kernel.2935.n7.nabble.com/definition-of-sys-access-function-tp657210p657226.html
Sent from the Linux Kernel mailing list archive at Nabble.com.

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

* RE: definition of sys_access function
  2013-05-29  8:19 ` richard -rw- weinberger
  2013-05-29  8:27   ` johnspaul92
@ 2013-05-29  8:28   ` Wang, Yalin
  1 sibling, 0 replies; 8+ messages in thread
From: Wang, Yalin @ 2013-05-29  8:28 UTC (permalink / raw)
  To: 'richard -rw- weinberger', johnspaul92; +Cc: LKML

Hi  Richard ,

This system call is defined in this file :

Kernel/fs/open.c 

Please check it .

Thanks 

-----Original Message-----
From: linux-kernel-owner@vger.kernel.org [mailto:linux-kernel-owner@vger.kernel.org] On Behalf Of richard -rw- weinberger
Sent: Wednesday, May 29, 2013 4:19 PM
To: johnspaul92
Cc: LKML
Subject: Re: definition of sys_access function

On Wed, May 29, 2013 at 10:12 AM, johnspaul92 <johns@ti.com> wrote:
> Where can i find the definition of the sys_access function???
> I tried checking in syscalls.h. But there i found only the declaration.
> Where can i find the definition so that i can understand what that 
> function actually does.

Use git grep to find out.
E.g. git grep "SYSCALL_DEFINE[0-9](access"

--
Thanks,
//richard
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

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

* RE: definition of sys_access function
  2013-05-29  8:27   ` johnspaul92
@ 2013-05-29  9:18     ` Wang, Yalin
  0 siblings, 0 replies; 8+ messages in thread
From: Wang, Yalin @ 2013-05-29  9:18 UTC (permalink / raw)
  To: 'johnspaul92', linux-kernel@vger.kernel.org

Hi  

You should search like this in  fs/open.c

SYSCALL_DEFINE2(access, const char __user *, filename, int, mode)

You can find it .

Thanks 

-----Original Message-----
From: linux-kernel-owner@vger.kernel.org [mailto:linux-kernel-owner@vger.kernel.org] On Behalf Of johnspaul92
Sent: Wednesday, May 29, 2013 4:28 PM
To: linux-kernel@vger.kernel.org
Subject: Re: definition of sys_access function

I tried that and i got the result as fs/open.c But i couldnt find any references to sys_access.




--
View this message in context: http://linux-kernel.2935.n7.nabble.com/definition-of-sys-access-function-tp657210p657226.html
Sent from the Linux Kernel mailing list archive at Nabble.com.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

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

* Re: definition of sys_access function
  2013-05-29  8:12 definition of sys_access function johnspaul92
  2013-05-29  8:19 ` richard -rw- weinberger
@ 2013-05-29  9:22 ` johnspaul92
  2013-05-30  4:59 ` Rob Landley
  2013-12-23  5:14 ` goresh
  3 siblings, 0 replies; 8+ messages in thread
From: johnspaul92 @ 2013-05-29  9:22 UTC (permalink / raw)
  To: linux-kernel

Thanks, i got it.



-----
Thank You
Johns
--
View this message in context: http://linux-kernel.2935.n7.nabble.com/definition-of-sys-access-function-tp657210p657262.html
Sent from the Linux Kernel mailing list archive at Nabble.com.

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

* Re: definition of sys_access function
  2013-05-29  8:12 definition of sys_access function johnspaul92
  2013-05-29  8:19 ` richard -rw- weinberger
  2013-05-29  9:22 ` johnspaul92
@ 2013-05-30  4:59 ` Rob Landley
  2013-12-23  5:14 ` goresh
  3 siblings, 0 replies; 8+ messages in thread
From: Rob Landley @ 2013-05-30  4:59 UTC (permalink / raw)
  To: johnspaul92; +Cc: linux-kernel

On 05/29/2013 03:12:57 AM, johnspaul92 wrote:
> Where can i find the definition of the sys_access function???
> I tried checking in syscalls.h. But there i found only the  
> declaration.
> Where can i find the definition so that i can understand what that  
> function
> actually does.

$ find linux -name "*.c" | xargs grep SYSCALL | grep '(access'
linux/fs/open.c:SYSCALL_DEFINE2(access, const char __user *, filename,  
int, mode)

Rob

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

* Re: definition of sys_access function
  2013-05-29  8:12 definition of sys_access function johnspaul92
                   ` (2 preceding siblings ...)
  2013-05-30  4:59 ` Rob Landley
@ 2013-12-23  5:14 ` goresh
  3 siblings, 0 replies; 8+ messages in thread
From: goresh @ 2013-12-23  5:14 UTC (permalink / raw)
  To: linux-kernel

Hey Hi..
If you are in search of sys_access related to kernel calls then u can find
its defenation in 
main.c  stored in /init/main.c



--
View this message in context: http://linux-kernel.2935.n7.nabble.com/definition-of-sys-access-function-tp657210p776833.html
Sent from the Linux Kernel mailing list archive at Nabble.com.

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

end of thread, other threads:[~2013-12-23  5:14 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-29  8:12 definition of sys_access function johnspaul92
2013-05-29  8:19 ` richard -rw- weinberger
2013-05-29  8:27   ` johnspaul92
2013-05-29  9:18     ` Wang, Yalin
2013-05-29  8:28   ` Wang, Yalin
2013-05-29  9:22 ` johnspaul92
2013-05-30  4:59 ` Rob Landley
2013-12-23  5:14 ` goresh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox