0

I've been studying linux source code for a while now and multiple times I came across this in struct definitions.

include/linux/spi/spi.h:

struct spi_transfer {
[...]
    unsigned    dummy_data:1;
    unsigned    cs_change:1;
    unsigned    tx_nbits:3;
    unsigned    rx_nbits:3;
[...]
}

include/linux/sched.h

struct task_struct {
[...]
    unsigned            sched_reset_on_fork:1;
    unsigned            sched_contributes_to_load:1;
    unsigned            sched_migrated:1;
[...]

what does this number after element's name means?

I tried looking at c reference but didn't find anything or didn't know where to search.

forouhar
  • 1
  • 1

0 Answers0