xinyou yan gmail.com> writes:
>
> If I want to sleep until a event happened ?
> How can i do it in user mode.
> ...
Well, it depends what event and under what circumstances.
The are single-threading and multi-threading programs.
An event can be triggered by a counter, timer, signal, inotif
If I want to sleep until a event happened ?
How can i do it in user mode.
2011/3/15 Joe Zeff :
> On 03/14/2011 03:21 AM, Gilboa Davara wrote:
>> As a general rule, using static parameters in kernel space is considered
>> hazardous; nevertheless, a 128 bytes is relatively safe.
>
> Just make s
On 03/14/2011 03:21 AM, Gilboa Davara wrote:
> As a general rule, using static parameters in kernel space is considered
> hazardous; nevertheless, a 128 bytes is relatively safe.
Just make sure that you never write more than 128 bytes (including
termination) into it.
--
users mailing list
users@
On Mon, 2011-03-14 at 21:24 +0800, xinyou yan wrote:
> May be it can't be implement.
> I mean . I create a file with a big size .
> Then i write a super block struct ( I define it like the linux)
> Then Inode table.
> Then DateBlocks.
>
> I reimplement some syscall on it .
> I j
2011/3/14 Gilboa Davara :
> On Sun, 2011-03-13 at 21:51 +0800, xinyou yan wrote:
>> It is a homework . Use a kernel spcae as a char decieve
>> Which can offer open write and so on.
>>
>> I just use a char buffer[128] in kernel space.
>>
>
> As a general rule, using static parameters in kernel
On Sun, 2011-03-13 at 21:51 +0800, xinyou yan wrote:
> It is a homework . Use a kernel spcae as a char decieve
> Which can offer open write and so on.
>
> I just use a char buffer[128] in kernel space.
>
As a general rule, using static parameters in kernel space is considered
hazardous; nev
It is a homework . Use a kernel spcae as a char decieve
Which can offer open write and so on.
I just use a char buffer[128] in kernel space.
Then i have some ideas.
I can use kernel space as char device. I can also use kernel spcae as
a file system? Could it be ?
If memory can be a files
On Thu, 2011-03-10 at 15:17 +0800, xinyou yan wrote:
> I want to and a new syscall
> 1 add
> .long sys_mysyscall
> inarch/x86/kernel/syscall_table_32.S
>
> 2add
>#define __NR_mysyscall 341
> inarch/x86/include/asm/unistd_32.
>
> 3.add
>
> asmlinkage int sys_mysys
xinyou yan gmail.com> writes:
> ...
$ man strace
JB
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
I mean weather i can use sys_open in /kernel/sys.c
Or how can i test it but i am in user space ?
2011/3/10 xinyou yan :
> I want to and a new syscall
> 1 add
> .long sys_mysyscall
> in arch/x86/kernel/syscall_table_32.S
>
> 2 add
> #define __NR_mysyscall 341
> in ar
I want to and a new syscall
1 add
.long sys_mysyscall
inarch/x86/kernel/syscall_table_32.S
2add
#define __NR_mysyscall 341
inarch/x86/include/asm/unistd_32.
3.add
asmlinkage int sys_mysyscall(char* sourceFile,char* destFile)
{
int source=sys_open(sourceFile,O_
11 matches
Mail list logo