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" napisał(a): > > > On 2015-07-30 09:57 AM, Grzegorz Dwornicki wrote: > > Yeah I've thought that hardware can be hard to program on U

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 : > On Wed, Jul 29, 2015 at 1:49 PM, Greg Freemyer > wrote: >> On Wed, Jul 29, 2015 at 4:23 PM, Manish Katiyar wrote: >>> On Wed, Jul 29, 2015 at 1:07 PM, Jeff Haran wrote: >-Or

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 blo

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 checked

[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 s

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 the

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
.org/collaborate/workgroups/networking/mainpage, > see if that helps > > kind regards > anupam > > On Tue, Oct 14, 2014 at 7:42 AM, Grzegorz Dwornicki > wrote: > >> Hey >> >> Is there a good documentation on how messages are taking the tour from >> User

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 s

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 http://lists.kernelnewbies.org/ma

Re: Driver laboratory classes on university

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

Driver laboratory classes on university

2013-08-06 Thread Grzegorz Dwornicki
Hi I'm working on own phd thesis. It includes some kernel hacking for practical application of my research. I wish to make some progress with programming classes on my university. We have a lot of high level programing like object oriented languages but none on low level and kernel programing. I

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" napisał(a): > Hi Daniel, > > It shows > nodev HEPunion > > Regards, > Saket Sinha > > > On Mon, Jul 1, 2013 at 11:37 PM, Daniel Baluta wrote: > >> On Mon, Jul 1, 2013 at 8:28 PM, Saket Sinha >> wrote: >> > This is to

Re: File system mount issue

2013-07-01 Thread Grzegorz Dwornicki
age- > > 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 wrote: > >> Then use HEPunion with -t switch >> >> Greg >

Re: Something about Redhat

2013-04-21 Thread Grzegorz Dwornicki
this. 21 kwi 2013 12:01, "Robert Clove" 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 wrote: > >> 1) init 3 or init 5 >> 2) man chkconfig should help you >> 3) read about /etc/

Re: Something about Redhat

2013-04-21 Thread Grzegorz Dwornicki
1) init 3 or init 5 2) man chkconfig should help you 3) read about /etc/sysconfig/network-scripts/ifcfg-* files, in your case you are interested in proto=dhcp directive 4) linux is multiuser system in init 3 soo use ssh or other tty 21 kwi 2013 11:46, "Robert Clove" napisał(a): > Hi, > I want to

Re: Process exit codes

2013-02-05 Thread Grzegorz Dwornicki
Thx for the tips :) 5 lut 2013 18:12, 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 &g

Re: Process exit codes

2013-02-05 Thread Grzegorz Dwornicki
(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&#

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" napisał(a): > On Mon, Feb 04, 2013 at 09:41:51AM +0100, Grzegorz Dwornicki

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" napisał(a): > hi:) > >When kernel boot

Re: newbie's question

2013-02-03 Thread Grzegorz Dwornicki
Ad.1 you need to keep partition table somewhere. I guess in MSDOS format that will be space right after MBR. G. 3 lut 2013 19:18, "horseriver" napisał(a): > hi:) > > I use fdisk to add a new partion on a image file. > I find the start of partion 1 is alwayes set to 63 by default. > That me

Re: Process exit codes

2013-02-01 Thread Grzegorz Dwornicki
need to send a signal to it by a kernel function > > Sent from my HTC > > - Reply message - > From: "Grzegorz Dwornicki" > To: > Subject: Process exit codes > Date: Fri, Feb 1, 2013 9:17 pm > > > Hi > > Can I kill process by changing its ex

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. ___ Kern

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" napisał(a): > Hi, > > I run a recent re-kernel (using lubuntu 12.04) and when I boot into it, > "free" says I do

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 co

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" napisał(a): > On Tue, Jan 8, 2013 at 8:59

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. _

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" Date: Mon, Dec 3, 2012 12:18 pm Sub