kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* ioctl number change / backwards compatibility doubt
@ 2022-01-17  7:01 Paulo Miguel Almeida
  2022-01-17 12:58 ` Greg KH
  0 siblings, 1 reply; 9+ messages in thread
From: Paulo Miguel Almeida @ 2022-01-17  7:01 UTC (permalink / raw)
  To: kernelnewbies; +Cc: paulo.miguel.almeida.rodenas

Hi everyone,

Context:

I've been working on a driver called pi433 in the staging area and it 
basically exposes a char device so the user can read/write stuff to
it while obtaining tx/rx configuration via ioctl calls.

Tx/Rx configurations are both structs that (ideally) would be exposed
to the userspace to let the developer to #include it on their code.

Info that *might* be relevant about this driver:

- This driver went straight to the staging area due to a few TODOs
  listed by the original author. 
- The ioctl Code and Seq numbers are conflicting with the ones listed
  in the ioctl-numbers.rst

Problem:

I realized that one of the structs used to pass/retrieve info needs
to have some of its members changed (data type and etc)

Questions:

1: Given the driver's history and ioctl number conflit, is the backwards
compatibility something to be kept or not to be taken into consideration
as ioctl numbering rules weren't followed?

2: The original author lists on the TODO file of the driver that 'he is
afraid that using ioctl wasn't a good idea'. I pondered the alternatives
and, *in case I can get rid of ioctl*, sysfs || configfs could be used. Does
anyone suggests a different approach?

Best regards,

Paulo Almeida


_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

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

end of thread, other threads:[~2022-03-16 14:08 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-17  7:01 ioctl number change / backwards compatibility doubt Paulo Miguel Almeida
2022-01-17 12:58 ` Greg KH
2022-01-23  7:55   ` Paulo Miguel Almeida
2022-01-23 11:04     ` Greg KH
2022-01-24  4:49       ` Paulo Miguel Almeida
2022-01-24  6:20         ` Greg KH
2022-03-12  0:05           ` Paulo Miguel Almeida
2022-03-14 12:30             ` Rogério Valentim Feitoza da Silva
2022-03-16 14:07             ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).