Re: [PATCH] samples: Fix `echo 1 > /proc/int-fifo` never return error

2015-02-04 Thread Stefani Seibold
The example is intended for int types, not for strings. So it is not a bug, it's a feature ;-) But anyway, if you prefer to handle with strings your are okay by me. Am Dienstag, den 03.02.2015, 11:51 + schrieb Wang Long: > echo 99 > /proc/int-fifo > Never return > echo 1000

Re: [PATCH] samples: Fix `echo 1 > /proc/int-fifo` never return error

2015-02-04 Thread long.wanglong
On 2015/2/4 18:18, Stefani Seibold wrote: > The example is intended for int types, not for strings. So it is not a > bug, it's a feature ;-) But anyway, if you prefer to handle with strings > your are okay by me. > hi,Stefani Seibold Thanks you for your reply. another question? This example

Re: [PATCH] samples: Fix `echo 1 /proc/int-fifo` never return error

2015-02-04 Thread Stefani Seibold
The example is intended for int types, not for strings. So it is not a bug, it's a feature ;-) But anyway, if you prefer to handle with strings your are okay by me. Am Dienstag, den 03.02.2015, 11:51 + schrieb Wang Long: echo 99 /proc/int-fifo Never return echo 1000

Re: [PATCH] samples: Fix `echo 1 /proc/int-fifo` never return error

2015-02-04 Thread long.wanglong
On 2015/2/4 18:18, Stefani Seibold wrote: The example is intended for int types, not for strings. So it is not a bug, it's a feature ;-) But anyway, if you prefer to handle with strings your are okay by me. hi,Stefani Seibold Thanks you for your reply. another question? This example export

[PATCH] samples: Fix `echo 1 > /proc/int-fifo` never return error

2015-02-03 Thread Wang Long
echo 99 > /proc/int-fifo > Never return echo 1000 > /proc/int-fifo > Never return this patch fix it. Signed-off-by: Wang Long --- samples/kfifo/inttype-example.c | 51 - 1 file changed, 40 insertions(+), 11 deletions(-)

[PATCH] samples: Fix `echo 1 > /proc/int-fifo` never return error

2015-02-03 Thread Wang Long
With the kernel module *samples/kfifo/inttype-example.ko*, the system will create file /proc/int-fifo. but the current code for this module may have some bug, as the following: # echo 100 > /proc/int-fifo > OK # echo 100 > /proc/int-fifo > OK # echo 99 >

[PATCH] samples: Fix `echo 1 /proc/int-fifo` never return error

2015-02-03 Thread Wang Long
echo 99 /proc/int-fifo Never return echo 1000 /proc/int-fifo Never return this patch fix it. Signed-off-by: Wang Long long.wangl...@huawei.com --- samples/kfifo/inttype-example.c | 51 - 1 file changed, 40

[PATCH] samples: Fix `echo 1 /proc/int-fifo` never return error

2015-02-03 Thread Wang Long
With the kernel module *samples/kfifo/inttype-example.ko*, the system will create file /proc/int-fifo. but the current code for this module may have some bug, as the following: # echo 100 /proc/int-fifo OK # echo 100 /proc/int-fifo OK # echo 99