All of lore.kernel.org
 help / color / mirror / Atom feed
* Netlink Question
@ 2014-08-11 19:21 C. McPherson
  2014-08-12  8:42 ` Arend van Spriel
  0 siblings, 1 reply; 8+ messages in thread
From: C. McPherson @ 2014-08-11 19:21 UTC (permalink / raw)
  To: backports

I have some private WiFi ioctl's that are associated with a couple of 
drivers and I would like to convert those private ioctl's into netlink. 
Does anyone know if there is any documentation on this or a URL that I 
could reference before I attempt?

Thanks in advance
Clyde


^ permalink raw reply	[flat|nested] 8+ messages in thread
* netlink question
@ 2009-02-10 20:33 Giacomo
  0 siblings, 0 replies; 8+ messages in thread
From: Giacomo @ 2009-02-10 20:33 UTC (permalink / raw)
  To: netfilter-devel

Dear netfilter list.

I would like to ask you about a strange issue.

I wrote a software that communicates with kernel space via the netlink socket.

A data structure of 212 byte (+16 byte of netlink header) used to
travel from user to kernel space and viceversa
without any problem.
Inside kernel space, socket buffer is allocated with alloc_skb
together with GFP_ATOMIC flag.

Since a couple of fields in the structure have changed

from __u32 source_ip  to __u32 source_ip[50];

and equivalently __u32 dest_ip became  __u32 dest_ip[50];

__u16 sport;   ->  __u16 sport[50];

__u16 dport;   ->  __u16 dport[50];

kernel began to crash, reporting, among other messages "scheduling
while atomic".

The data structure is now grown up to 788bytes (+16 netlink header).

I introduced in the functions responsible of netlink communication
some printks reporting the value of
in_atomic();

while with little data structures I always read in_atomic() == 0,  in
the same actions, but with the bigger
data structure, sometimes i read in_atomic() == 1


Is there a possible reason for this behaviour?

If yes, how should the behaviour be corrected?

Thanks in advance.

Giacomo, Italy.





-- 
Giacomo S.
http://www.giacomos.it

- - - - - - - - - - - - - - - - - - - - - -

* Aprile 2008: iqfire-wall, un progetto
  open source che implementa un
  filtro di pacchetti di rete per Linux,
  e` disponibile per il download qui:
  http://sourceforge.net/projects/ipfire-wall

* Informazioni e pagina web ufficiale:
  http://www.giacomos.it/iqfire/index.html

- - - - - - - - - - - - - - - - - - - - - -

 . ''  `.
:   :'    :
 `.  ` '
    `- Debian GNU/Linux -- The power of freedom
        http://www.debian.org

^ permalink raw reply	[flat|nested] 8+ messages in thread
* netlink question
@ 2002-04-10 11:20 Balazs Scheidler
  2002-04-11 11:41 ` jamal
  0 siblings, 1 reply; 8+ messages in thread
From: Balazs Scheidler @ 2002-04-10 11:20 UTC (permalink / raw)
  To: netdev

Hi,

As I need to communicate between two parts of the kernel (a core TCP part,
and a loaded module), Andi suggested to use netlink for this purpose.

Since I'm not too familiar with Netlink (and I saw only userspace-kernel
communication using netlink), I'd need some introductory material about
netlink. Is some information about the subject available? Sample code would
be sufficient as well.

I've tried google but didn't find too much until now, so some help would be
appreciated.

TIA,

-- 
Bazsi
PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1

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

end of thread, other threads:[~2014-08-14  8:18 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-11 19:21 Netlink Question C. McPherson
2014-08-12  8:42 ` Arend van Spriel
2014-08-12  9:32   ` Krishna Chaitanya
2014-08-13 19:01     ` C. McPherson
2014-08-14  8:18       ` Arend van Spriel
  -- strict thread matches above, loose matches on Subject: below --
2009-02-10 20:33 netlink question Giacomo
2002-04-10 11:20 Balazs Scheidler
2002-04-11 11:41 ` jamal

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.