Re: Kernel development using linux containers (LXC ) ?

2015-07-30 Thread Grzegorz Dwornicki
As I said I use kvm and this question was just for sake of argument. Since you ask I work with sockets ATM. 30 lip 2015 16:03 nick xerofo...@gmail.com napisał(a): On 2015-07-30 09:57 AM, Grzegorz Dwornicki wrote: Yeah I've thought that hardware can be hard to program on UML 30 lip 2015 14

Re: Kernel development using linux containers (LXC ) ?

2015-07-30 Thread Grzegorz Dwornicki
What about UML? I'm using KVM but asking for the sake of argument. 2015-07-29 23:03 GMT+02:00 Manish Katiyar mkati...@gmail.com: On Wed, Jul 29, 2015 at 1:49 PM, Greg Freemyer greg.freem...@gmail.com wrote: On Wed, Jul 29, 2015 at 4:23 PM, Manish Katiyar mkati...@gmail.com wrote: On Wed, Jul

unlocking the recv

2015-06-03 Thread Grzegorz Dwornicki
Hello I am wondering with pure theoretical task. Is there a posibility to unlock the recv function without making the socket nonblocking? Lets assume that we have our server and client: server ---network --- client Server callend the recv function and waits for the data from client soo its

sk_wait_data

2015-02-19 Thread Grzegorz Dwornicki
Hello Proces have a established tcp socket. It calls sys_revcmsg on that socket. That function goes all the way to tcp_recvmsg function. Function tcp_recvmsg.c (defined in net/ipv4/tcp.c) blocks it self on function sk_wait_data if socket recv queue is empty. I wanted to know how socked is

[no subject]

2015-01-27 Thread Grzegorz Dwornicki
Keepalive question Hello I am bothered with very simple situaction. Lets say we have a TCP connection: S1 S2 Lets assume that this connection is using blocking sockets. and that both hosts: s1 and s2 are using SO_KEEPALIVE. If they both are not using this connection then the kernel? is

broken network connection

2014-11-06 Thread Grzegorz Dwornicki
Hi I have a big interest in how kernel handles this situaction. Lets assume that we have two hosts: host 1 and host 2 and on host 1 I have started this command: nc -l -p on host 2 I have started this command (2 means IP addres of second host here!): nc 2 Now i can send msgs betweem

Struct msghdr

2014-10-28 Thread Grzegorz Dwornicki
Hello I have a question about this structure. It has 2 fields. One is iov_base the pointer of type void. Second is iov_len of type size_t. This is interesting: iov_len has always a value of 8190. How does it impact the iov_base? I mean does iov_base is built from other structures? If soo where I

Re: Socket receive, send

2014-10-14 Thread Grzegorz Dwornicki
/collaborate/workgroups/networking/mainpage, see if that helps kind regards anupam On Tue, Oct 14, 2014 at 7:42 AM, Grzegorz Dwornicki gd1...@gmail.com wrote: Hey Is there a good documentation on how messages are taking the tour from User calling read/write on socket fd, to kernel

Socket receive, send

2014-10-13 Thread Grzegorz Dwornicki
Hey Is there a good documentation on how messages are taking the tour from User calling read/write on socket fd, to kernel handling the actual send/receive functions? I wish to write code to capture the messages (no netfilter - I wish to bypass it) for processing. I know there is a socket-ops

Lxc vs openvz

2014-06-16 Thread Grzegorz Dwornicki
Hi Can anyone point me why lxc was added to the kernel instead of openvz? The point in time will be sufficient as I will look in the lkml archives. Grzegorz ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org

Re: Driver laboratory classes on university

2013-08-07 Thread Grzegorz Dwornicki
of money from University. This may be a problem in the long run. 7 sie 2013 11:22, Rohan Puri rohan.pur...@gmail.com napisał(a): On Wed, Aug 7, 2013 at 12:09 AM, Grzegorz Dwornicki gd1...@gmail.comwrote: Hi I'm working on own phd thesis. It includes some kernel hacking for practical application

Re: File system mount issue

2013-07-01 Thread Grzegorz Dwornicki
- mount:wrong fs, bad option, bad superblock on /dev/sda1, Missing codepage or other error. Regards, Saket Sinha On Mon, Jul 1, 2013 at 11:54 PM, Grzegorz Dwornicki gd1...@gmail.comwrote: Then use HEPunion with -t switch Greg 1 lip 2013 20:18, Saket Sinha saket.sinh...@gmail.com napisał(a): Hi

Re: File system mount issue

2013-07-01 Thread Grzegorz Dwornicki
Then use HEPunion with -t switch Greg 1 lip 2013 20:18, Saket Sinha saket.sinh...@gmail.com napisał(a): Hi Daniel, It shows nodev HEPunion Regards, Saket Sinha On Mon, Jul 1, 2013 at 11:37 PM, Daniel Baluta daniel.bal...@gmail.comwrote: On Mon, Jul 1, 2013 at 8:28 PM, Saket

Re: Something about Redhat

2013-04-21 Thread Grzegorz Dwornicki
this. 21 kwi 2013 12:01, Robert Clove cloverob...@gmail.com napisał(a): where to put init 3 or init 5,i mean what are the steps On Sun, Apr 21, 2013 at 3:21 PM, Grzegorz Dwornicki gd1...@gmail.comwrote: 1) init 3 or init 5 2) man chkconfig should help you 3) read about /etc/sysconfig/network

Re: Process exit codes

2013-02-05 Thread Grzegorz Dwornicki
, valdis.kletni...@vt.edu napisał(a): On Fri, 01 Feb 2013 14:17:18 +0100, Grzegorz Dwornicki said: I want to do something like kill -9 on specyfic process using kernel module Let's take a step back - can you explain *why* you're trying to do a kill -9 from a kernel module? There's a really good

Re: Process exit codes

2013-02-05 Thread Grzegorz Dwornicki
Thx for the tips :) 5 lut 2013 18:12, valdis.kletni...@vt.edu napisał(a): On Tue, 05 Feb 2013 14:07:37 +0100, Grzegorz Dwornicki said: I guess that there may be a better API that why this thread was created in first place. My project goal is to make process checkpoints like cryopid had

Re: print log

2013-02-04 Thread Grzegorz Dwornicki
1. Look in /var/log for dmesg, kernel.log or kmsg. These files cn be created by syslog and one of them might contain this information. 2. Use dmesg command and grep it like this: dmesg | grep Initial Network myfile.txt 4 lut 2013 09:25, horseriver horseriv...@gmail.com napisał(a): hi:)

Re: print log

2013-02-04 Thread Grzegorz Dwornicki
I have seen articles about using console port to redirect kernel messages from VM to host. You may want to look for details in google. I don't remeber the ugly details... 4 lut 2013 11:38, horseriver horseriv...@gmail.com napisał(a): On Mon, Feb 04, 2013 at 09:41:51AM +0100, Grzegorz Dwornicki

Process exit codes

2013-02-01 Thread Grzegorz Dwornicki
Hi Can I kill process by changing its exit codes in task_struct structure? Lets do this in 2 steps: 1. Modify the exit codes in task_struct 2. Call schedule I want to do something like kill -9 on specyfic process using kernel module Thanks G. ___

Re: SWAP gone when running mainline

2013-01-27 Thread Grzegorz Dwornicki
Let me get this right: you have 2 distros? On one (ubuntu) you have swap and on other (lubuntu) not? Looks like missing fstab entry too me Greg. 27 sty 2013 13:24, Martin Kepplinger mart...@posteo.de napisał(a): Hi, I run a recent re-kernel (using lubuntu 12.04) and when I boot into it, free

Re: Grub menu entry without root= in SLES11SP2 machine

2013-01-22 Thread Grzegorz Dwornicki
On the Sylicon Valey Linux User Group at the Kernel Walktrought (you can watch it on youtube) Jim said something about kernel remembering its root devide durring compilation soo when you don't use root arg it will use that setting inside of its image. But someone might verify this G. 22 sty 2013

How does __user works?

2013-01-19 Thread Grzegorz Dwornicki
How does __user macro works? I know it is defined in include/linux/compiler.h as: # define __user.__attribute__((noderef, address_space(1))) I could write thesse macros defs too but my real problem is: what does this stuff do? Some functions use this macro and other does not. For example

Re: Need a tutorial about `write a simple file system` in linux

2013-01-08 Thread Grzegorz Dwornicki
I too would like to read tutorial like this. Ramfs is not disk based. Reading code of extX or other is a little pain... I was searching for article like this on lwn but there are only tutorials about nondisk fs. Greg 8 sty 2013 15:48, Mulyadi Santosa mulyadi.sant...@gmail.com napisał(a): On

Re: insmod: error inserting 'test2.ko': -1 Unknown symbol in module

2012-12-14 Thread Grzegorz Dwornicki
Well I had same problem in my own project that I am working ATM. We won't be sure what is wrong until you show us the sourcecode but my guess is missing EXPORT_SYMBOL makro - that was missing in my project. Greg. - Reply message - From: Pritam Bankar pritambankar1988 at gmail.com Date:

Re: Asking another process sleep from another process or interrupt context

2012-12-14 Thread Grzegorz Dwornicki
Hi I have to ask about this: can process ignore this signal? If yes then this method is not perfect. I know i read somewhere about signals and there was this part: processes can ignore nearly all of them. Two signals can't be ignored: SIGKILL and... I don't remember the second... Greg.